aboutsummaryrefslogtreecommitdiff
path: root/libbb/human_readable.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/human_readable.c')
-rw-r--r--libbb/human_readable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/human_readable.c b/libbb/human_readable.c
index 50cbe41bb..8b22b0cb5 100644
--- a/libbb/human_readable.c
+++ b/libbb/human_readable.c
@@ -53,8 +53,8 @@ const char* FAST_FUNC make_human_readable_str(unsigned long long val,
53 u = unit_chars; 53 u = unit_chars;
54 54
55 if (display_unit) { 55 if (display_unit) {
56 val += display_unit/2; /* Deal with rounding */ 56 val += display_unit/2; /* Deal with rounding */
57 val /= display_unit; /* Don't combine with the line above! */ 57 val /= display_unit; /* Don't combine with the line above! */
58 /* will just print it as ulonglong (below) */ 58 /* will just print it as ulonglong (below) */
59 } else { 59 } else {
60 while ((val >= 1024) 60 while ((val >= 1024)