Some less obvious ones that I was told were there

This commit is contained in:
hawken 2019-01-07 21:16:38 +00:00
parent 880825514a
commit 82a801c9ae
2 changed files with 4 additions and 4 deletions

View file

@ -1056,7 +1056,7 @@ namespace Emby.Server.Implementations.LiveTv
var numComplete = 0;
double progressPerService = _services.Length == 0
? 0
: 1 / _services.Length;
: 1.0 / _services.Length;
var newChannelIdList = new List<Guid>();
var newProgramIdList = new List<Guid>();
@ -1262,7 +1262,7 @@ namespace Emby.Server.Implementations.LiveTv
}
numComplete++;
double percent = numComplete / allChannelsList.Count;
double percent = numComplete / (double) allChannelsList.Count;
progress.Report(85 * percent + 15);
}
@ -1307,7 +1307,7 @@ namespace Emby.Server.Implementations.LiveTv
}
numComplete++;
double percent = numComplete / list.Count;
double percent = numComplete / (double) list.Count;
progress.Report(100 * percent);
}

View file

@ -65,7 +65,7 @@ namespace Emby.Server.Implementations.ScheduledTasks.Tasks
foreach (var file in filesToDelete)
{
double percent = index / filesToDelete.Count;
double percent = index / (double) filesToDelete.Count;
progress.Report(100 * percent);