diff --git a/Bloxstrap/Bootstrapper.cs b/Bloxstrap/Bootstrapper.cs index bb5cfcb4..a71827da 100644 --- a/Bloxstrap/Bootstrapper.cs +++ b/Bloxstrap/Bootstrapper.cs @@ -603,15 +603,15 @@ private async Task UpgradeRoblox() Dialog.ProgressMaximum = ProgressBarMaximum; // compute total bytes to download - int totalSize = _versionPackageManifest.Sum(package => package.PackedSize); - _progressIncrement = (double)ProgressBarMaximum / totalSize; + int totalPackedSize = _versionPackageManifest.Sum(package => package.PackedSize); + _progressIncrement = (double)ProgressBarMaximum / totalPackedSize; if (Dialog is WinFormsDialogBase) _taskbarProgressMaximum = (double)TaskbarProgressMaximumWinForms; else _taskbarProgressMaximum = (double)TaskbarProgressMaximumWpf; - _taskbarProgressIncrement = _taskbarProgressMaximum / (double)totalSize; + _taskbarProgressIncrement = _taskbarProgressMaximum / (double)totalPackedSize; } var extractionTasks = new List();