diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-18 01:55:00 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2010-01-18 01:55:00 +0100 |
commit | 9c3b84a3049a152dd6a2b9e3aecaf897f57ac28e (patch) | |
tree | 97a510f4effe3a9d074db41c0996b8e74b216811 /include/libbb.h | |
parent | b972f949577301bd7a66e88c11b9e26431d80a11 (diff) | |
download | busybox-w32-9c3b84a3049a152dd6a2b9e3aecaf897f57ac28e.tar.gz busybox-w32-9c3b84a3049a152dd6a2b9e3aecaf897f57ac28e.tar.bz2 busybox-w32-9c3b84a3049a152dd6a2b9e3aecaf897f57ac28e.zip |
ls: make it so that group never glues itself to file size
+ smaller enhancements: inode is long long; -h is a bit narrower; etc
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'include/libbb.h')
-rw-r--r-- | include/libbb.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/libbb.h b/include/libbb.h index 9e6ee8434..73aea409e 100644 --- a/include/libbb.h +++ b/include/libbb.h | |||
@@ -704,8 +704,10 @@ void smart_ulltoa4(unsigned long long ul, char buf[5], const char *scale) FAST_F | |||
704 | void smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_FUNC; | 704 | void smart_ulltoa5(unsigned long long ul, char buf[5], const char *scale) FAST_FUNC; |
705 | /* If block_size == 0, display size without fractional part, | 705 | /* If block_size == 0, display size without fractional part, |
706 | * else display (size * block_size) with one decimal digit. | 706 | * else display (size * block_size) with one decimal digit. |
707 | * If display_unit == 0, add suffix (K,M,G...), | 707 | * If display_unit == 0, show value no bigger than 1024 with suffix (K,M,G...), |
708 | * else divide by display_unit and do not use suffix. */ | 708 | * else divide by display_unit and do not use suffix. */ |
709 | #define HUMAN_READABLE_MAX_WIDTH 7 /* "1024.0G" */ | ||
710 | #define HUMAN_READABLE_MAX_WIDTH_STR "7" | ||
709 | //TODO: provide pointer to buf (avoid statics)? | 711 | //TODO: provide pointer to buf (avoid statics)? |
710 | const char *make_human_readable_str(unsigned long long size, | 712 | const char *make_human_readable_str(unsigned long long size, |
711 | unsigned long block_size, unsigned long display_unit) FAST_FUNC; | 713 | unsigned long block_size, unsigned long display_unit) FAST_FUNC; |