aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-09-04 01:04:43 -0500
committerRob Landley <rob@landley.net>2020-09-04 01:04:43 -0500
commitec5e6e12ee6d7047ab013f3a2826abdb52666ea0 (patch)
tree0a14a66b2dab3daa67da89d8bf6ce8032ccb5527 /lib/lib.h
parentcb064374c86259f74899162b28c4896e898401e3 (diff)
downloadtoybox-ec5e6e12ee6d7047ab013f3a2826abdb52666ea0.tar.gz
Add commas to top display, and adjust memory units to megabytes if >10G RAM.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h10
1 files changed, 6 insertions, 4 deletions
diff --git a/lib/lib.h b/lib/lib.h
index 72b4fd65..c793ba3f 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -275,10 +275,12 @@ unsigned tar_cksum(void *data);
int is_tar_header(void *pkt);
char *elf_arch_name(int type);
-#define HR_SPACE 1 // Space between number and units
-#define HR_B 2 // Use "B" for single byte units
-#define HR_1000 4 // Use decimal instead of binary units
-int human_readable_long(char *buf, unsigned long long num, int dgt, int style);
+#define HR_SPACE 1 // Space between number and units
+#define HR_B 2 // Use "B" for single byte units
+#define HR_1000 4 // Use decimal instead of binary units
+#define HR_COMMAS 8 // Commas every 1000
+int human_readable_long(char *buf, unsigned long long num, int dgt, int unit,
+ int style);
int human_readable(char *buf, unsigned long long num, int style);
// env.c