aboutsummaryrefslogtreecommitdiff
path: root/toys/posix
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2015-09-06 20:10:04 -0500
committerRob Landley <rob@landley.net>2015-09-06 20:10:04 -0500
commit960100aa9cb588a73125d43ec0b0a7152a95b43f (patch)
tree8a33efdad74bc2ecf36efaed1b3089101a9a6102 /toys/posix
parent60d1aea2df9a8cc1e975ed5fee079982612f5966 (diff)
downloadtoybox-960100aa9cb588a73125d43ec0b0a7152a95b43f.tar.gz
Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes,
and update the tests.
Diffstat (limited to 'toys/posix')
-rw-r--r--toys/posix/df.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/posix/df.c b/toys/posix/df.c
index 8fc26eca..bc153615 100644
--- a/toys/posix/df.c
+++ b/toys/posix/df.c
@@ -77,7 +77,7 @@ static void show_mt(struct mtab_list *mt)
if (len < 1) len = 1;
if (toys.optflags & (FLAG_H|FLAG_h)) {
char *size_str = toybuf, *used_str = toybuf+64, *avail_str = toybuf+128;
- int hr_flags = (toys.optflags & FLAG_H) ? HR_SI : 0;
+ int hr_flags = (toys.optflags & FLAG_H) ? HR_1000 : 0;
human_readable(size_str, size, hr_flags);
human_readable(used_str, used, hr_flags);