diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-15 21:33:34 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2015-10-15 21:33:34 +0200 |
commit | 93dd9fd90ae284e7878767fe14bcb17e3edd9cf8 (patch) | |
tree | ce345561860ba2894f0793d846dd54200b6069d5 /libbb | |
parent | 5251135bc184bdcb8cbcb964e8c44c6c301bffdc (diff) | |
download | busybox-w32-93dd9fd90ae284e7878767fe14bcb17e3edd9cf8.tar.gz busybox-w32-93dd9fd90ae284e7878767fe14bcb17e3edd9cf8.tar.bz2 busybox-w32-93dd9fd90ae284e7878767fe14bcb17e3edd9cf8.zip |
du: extra compat: with -k and -m, round sizes up
function old new delta
print 36 65 +29
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/human_readable.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libbb/human_readable.c b/libbb/human_readable.c index 5c7fc076f..b4e0ef181 100644 --- a/libbb/human_readable.c +++ b/libbb/human_readable.c | |||
@@ -14,16 +14,11 @@ | |||
14 | * representations (say, powers of 1024) and manipulating coefficients. | 14 | * representations (say, powers of 1024) and manipulating coefficients. |
15 | * The base ten "bytes" output could be handled similarly. | 15 | * The base ten "bytes" output could be handled similarly. |
16 | * | 16 | * |
17 | * 2) This routine always outputs a decimal point and a tenths digit when | 17 | * 2) This routine outputs a decimal point and a tenths digit when |
18 | * display_unit != 0. Hence, it isn't uncommon for the returned string | 18 | * display_unit == 0. Hence, it isn't uncommon for the returned string |
19 | * to have a length of 5 or 6. | 19 | * to have a length of 5 or 6. |
20 | * | 20 | * |
21 | * It might be nice to add a flag to indicate no decimal digits in | 21 | * If block_size is also 0, no decimal digits are printed. |
22 | * that case. This could be either an additional parameter, or a | ||
23 | * special value of display_unit. Such a flag would also be nice for du. | ||
24 | * | ||
25 | * Some code to omit the decimal point and tenths digit is sketched out | ||
26 | * and "#if 0"'d below. | ||
27 | * | 22 | * |
28 | * Licensed under GPLv2, see file LICENSE in this source tree. | 23 | * Licensed under GPLv2, see file LICENSE in this source tree. |
29 | */ | 24 | */ |