summaryrefslogtreecommitdiff
path: root/apps/string.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/string.c')
-rw-r--r--apps/string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/string.c b/apps/string.c
index b150178..8c29fd5 100644
--- a/apps/string.c
+++ b/apps/string.c
@@ -37,7 +37,7 @@ char *num2max5(unsigned int bytes, char *max5)
}
if(bytes < (100*ONE_MEGABYTE)) {
/* 'XX.XM' is good as long as we're less than 100 megs */
- snprintf(max5, 6, "%4d.%0dM",
+ snprintf(max5, 6, "%2d.%0dM",
bytes/ONE_MEGABYTE,
(bytes%ONE_MEGABYTE)/(ONE_MEGABYTE/10) );
return max5;