[ui] fix percent not being displayed on slow format

This commit is contained in:
Pete Batard 2019-09-21 22:39:00 +01:00
parent 996d4254b3
commit 1b02181f74
No known key found for this signature in database
GPG key ID: 38E0CF5E69EDD671
5 changed files with 15 additions and 15 deletions

View file

@ -1251,7 +1251,7 @@ void UpdateProgress(int op, float percent)
pos = (int)((previous_end + ((slot_end[op + 1] - previous_end) * (percent / 100.0f))) / 100.0f * MAX_PROGRESS);
}
if (pos > MAX_PROGRESS) {
duprintf("UpdateProgress(%d): rounding error - pos %d is greater than %d\n", op, pos, MAX_PROGRESS);
duprintf("UpdateProgress(%d): rounding error - pos %d is greater than %d", op, pos, MAX_PROGRESS);
pos = MAX_PROGRESS;
}