Removed code that was making percentages go down after 100% in numeric mode

This commit is contained in:
Andrew Wood
2023-07-17 12:28:32 +01:00
parent c718a00e2c
commit 3003f46313
3 changed files with 6 additions and 10 deletions
-4
View File
@@ -649,10 +649,6 @@ static char *pv__format(pvstate_t state,
"%.99s%lld\n", numericprefix,
total_bytes);
}
} else if (state->percentage > 100) {
/* As mentioned above, we go 0-100, then 100-0. */
sprintf(state->display_buffer, "%.99s%ld\n",
numericprefix, 200 - state->percentage);
} else {
sprintf(state->display_buffer, "%.99s%ld\n",
numericprefix, state->percentage);