aboutsummaryrefslogtreecommitdiff
path: root/coreutils/df.c
diff options
context:
space:
mode:
authorMark Whitley <markw@lineo.com>2001-02-20 21:57:55 +0000
committerMark Whitley <markw@lineo.com>2001-02-20 21:57:55 +0000
commit8d7bdc9deb754b8d52631aaf5d864a5584056b50 (patch)
tree411311ac54d67de4e621eb7a3377b5746b60b371 /coreutils/df.c
parent9e37007edbaaff3d431350de2c8a4a6f0469bd1d (diff)
downloadbusybox-8d7bdc9deb754b8d52631aaf5d864a5584056b50.tar.gz
Small patch from Kent Robotti to show megabytes in human-readable output.
Diffstat (limited to 'coreutils/df.c')
-rw-r--r--coreutils/df.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/coreutils/df.c b/coreutils/df.c
index 4ec75333b..8f6ef984b 100644
--- a/coreutils/df.c
+++ b/coreutils/df.c
@@ -105,7 +105,8 @@ extern int df_main(int argc, char **argv)
printf("%-20s %-14s %s %s %s %s\n", "Filesystem",
#ifdef BB_FEATURE_HUMAN_READABLE
- (KILOBYTE == disp_hr) ? "1k-blocks" : " Size",
+ (KILOBYTE == disp_hr) ? "1k-blocks" :
+ (MEGABYTE == disp_hr) ? "1M-blocks" : " Size",
#else
"1k-blocks",
#endif