From 960100aa9cb588a73125d43ec0b0a7152a95b43f Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sun, 6 Sep 2015 20:10:04 -0500 Subject: Switch HR_SI to HR_1000, make binary the default, make HR_B only affect bytes, and update the tests. --- toys/posix/df.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/posix/df.c') 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); -- cgit v1.2.3