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