From c9cf08d9e936544209a5b2baf0914232f10359ba Mon Sep 17 00:00:00 2001 From: Markus Date: Tue, 5 Oct 2010 11:29:39 -0700 Subject: [PATCH] Fix short_units for below kilo values. Signed-off-by: Brenden Matthews --- src/conky.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/conky.cc b/src/conky.cc index ebbf84a6..9177c898 100644 --- a/src/conky.cc +++ b/src/conky.cc @@ -620,7 +620,7 @@ void human_readable(long long num, char *buf, int size) spaced_print(buf, size, "%d", 6, round_to_int(num)); return; } - if (short_units) { + if (short_units || llabs(num) < 1000LL) { width = 5; format = "%.*f%.1s"; } else {