mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
merge progress calculation into a single line
This commit is contained in:
parent
9faa68b26f
commit
52e91243e5
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user