From 0d4983930a3559be92452761cfa268ee9d0f2773 Mon Sep 17 00:00:00 2001 From: wdenk Date: Tue, 1 Jul 2003 21:06:45 +0000 Subject: Patch by Kenneth Johansson, 30 Jun 2003: get rid of MK_CMD_ENTRY macro; update doc/README.command --- lib_generic/display_options.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'lib_generic') diff --git a/lib_generic/display_options.c b/lib_generic/display_options.c index ac04bff17ac..512e8980d9d 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); -- cgit v1.2.3