merge progress calculation into a single line

This commit is contained in:
dkanada 2019-01-31 15:33:39 +09:00
parent 9faa68b26f
commit 52e91243e5

View File

@ -95,10 +95,7 @@ namespace Emby.Server.Implementations.ScheduledTasks
lock (progress)
{
numComplete++;
double percent = numComplete;
percent /= packagesToInstall.Count;
progress.Report(90 * percent + 10);
progress.Report(90 * numComplete / packagesToInstall.Count + 10);
}
}