add back math.floor

This commit is contained in:
bluepilledgreat 2023-10-06 18:03:29 +01:00
parent 91952402bd
commit ba1c92cf8b

View File

@ -96,7 +96,7 @@ namespace Bloxstrap
if (Dialog is null)
return;
int progressValue = (int)(_progressIncrement * _totalDownloadedBytes);
int progressValue = (int)Math.Floor(_progressIncrement * _totalDownloadedBytes);
// bugcheck: if we're restoring a file from a package, it'll incorrectly increment the progress beyond 100
// too lazy to fix properly so lol