aboutsummaryrefslogtreecommitdiff
path: root/lib/lib.h
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2020-09-12 07:46:44 -0500
committerRob Landley <rob@landley.net>2020-09-12 07:46:44 -0500
commit5b7cc6d6c2a549188ce652d44b2583c01fb48188 (patch)
treeff8b6c96e311b3b27809eb66b758f288d47b5342 /lib/lib.h
parent2450930d8bc51f961ac1d2b92cccecd8a8e64a1c (diff)
downloadtoybox-5b7cc6d6c2a549188ce652d44b2583c01fb48188.tar.gz
Replace HR_COMMAS with HR_NODOT
The comma thing turned into an internationalization can of worms, don't go there. Keep the "show megabytes on systems with >10G" logic which includes not showing 0.0 for single digit values.
Diffstat (limited to 'lib/lib.h')
-rw-r--r--lib/lib.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lib.h b/lib/lib.h
index c793ba3f..db851631 100644
--- a/lib/lib.h
+++ b/lib/lib.h
@@ -278,7 +278,7 @@ 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
-#define HR_COMMAS 8 // Commas every 1000
+#define HR_NODOT 8 // No tenths for single digit units
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);