summaryrefslogtreecommitdiff
path: root/lib_generic/display_options.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib_generic/display_options.c')
-rw-r--r--lib_generic/display_options.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib_generic/display_options.c b/lib_generic/display_options.c
index ac04bff..512e898 100644
--- a/lib_generic/display_options.c
+++ b/lib_generic/display_options.c
@@ -54,6 +54,11 @@ void print_size (ulong size, const char *s)
m = (10 * (size - (n * d)) + (d / 2) ) / d;
+ if (m >= 10) {
+ m -= 10;
+ n += 1;
+ }
+
printf ("%2ld", n);
if (m) {
printf (".%ld", m);