mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-24 01:34:45 +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)
|
lock (progress)
|
||||||
{
|
{
|
||||||
numComplete++;
|
numComplete++;
|
||||||
double percent = numComplete;
|
progress.Report(90 * numComplete / packagesToInstall.Count + 10);
|
||||||
percent /= packagesToInstall.Count;
|
|
||||||
|
|
||||||
progress.Report(90 * percent + 10);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user