Update Emby.Server.Implementations/Library/UserDataManager.cs

Co-authored-by: Bond-009 <bond.009@outlook.com>
pull/4891/head
artiume 4 years ago committed by GitHub
parent cd979e6b62
commit 77b478c726
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -248,7 +248,7 @@ namespace Emby.Server.Implementations.Library
} }
else if (positionTicks > 0 && hasRuntime && (item is AudioBook)) else if (positionTicks > 0 && hasRuntime && (item is AudioBook))
{ {
var minIn = TimeSpan.FromTicks(positionTicks).TotalSeconds / 60; var minIn = TimeSpan.FromTicks(positionTicks).TotalMinutes;
// 10,000 ticks per millisecond * 60,000 milliseconds per minute = 600,000,000 ticks per minute // 10,000 ticks per millisecond * 60,000 milliseconds per minute = 600,000,000 ticks per minute
var minOut = (runtimeTicks - positionTicks) / 600000000; var minOut = (runtimeTicks - positionTicks) / 600000000;

Loading…
Cancel
Save