mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 08:45:23 +03:00
merge progress calculation into a single line
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user