Be pedantically correct about units and scale factors. There are two choices: either SI scale factors (k, M, G, T, ...) and scale by 10^3 each step, or IEC (binary) scale factors (Ki, Mi, Gi, Ti, ...) and scale by 2^10 each step.
modified src/progressmeter.c
@@ -73,7 +73,8 @@ static int win_size; /* terminal window size */
|
|
|
|
|
|
| - | |
| + | |
| + | |
|
|
|
|
|
@@ -86,37 +87,70 @@ can_output(void)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
| - | |
| + | |
|
|
|
|
|
|
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
| + | |
|
|
|
|
|
@@ -186,13 +220,13 @@ refresh_progress_meter(void)
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|
|
| - | |
| - | |
| + | |
| + | |
|
|
|
|
|