mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-04-24 05:57:20 -04:00
merge progress calculation into a single line
This commit is contained in:
parent
9faa68b26f
commit
52e91243e5
1 changed files with 1 additions and 4 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue