]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - lib_generic/display_options.c
Patch by Kenneth Johansson, 30 Jun 2003:
[people/ms/u-boot.git] / lib_generic / display_options.c
index ac04bff17ac87edb88bc1230bda0af3fc844aba1..512e8980d9d70fa4299277a3809784f5c67d657f 100644 (file)
@@ -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);