Small patch from Kent Robotti to show megabytes in human-readable output.

This commit is contained in:
Mark Whitley 2001-02-20 21:57:55 +00:00
parent 9e37007edb
commit 8d7bdc9deb
2 changed files with 4 additions and 2 deletions

View File

@ -105,7 +105,8 @@ extern int df_main(int argc, char **argv)
printf("%-20s %-14s %s %s %s %s\n", "Filesystem", printf("%-20s %-14s %s %s %s %s\n", "Filesystem",
#ifdef BB_FEATURE_HUMAN_READABLE #ifdef BB_FEATURE_HUMAN_READABLE
(KILOBYTE == disp_hr) ? "1k-blocks" : " Size", (KILOBYTE == disp_hr) ? "1k-blocks" :
(MEGABYTE == disp_hr) ? "1M-blocks" : " Size",
#else #else
"1k-blocks", "1k-blocks",
#endif #endif

3
df.c
View File

@ -105,7 +105,8 @@ extern int df_main(int argc, char **argv)
printf("%-20s %-14s %s %s %s %s\n", "Filesystem", printf("%-20s %-14s %s %s %s %s\n", "Filesystem",
#ifdef BB_FEATURE_HUMAN_READABLE #ifdef BB_FEATURE_HUMAN_READABLE
(KILOBYTE == disp_hr) ? "1k-blocks" : " Size", (KILOBYTE == disp_hr) ? "1k-blocks" :
(MEGABYTE == disp_hr) ? "1M-blocks" : " Size",
#else #else
"1k-blocks", "1k-blocks",
#endif #endif