mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-15 17:47:09 +00:00
Fix short_units for below kilo values.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
This commit is contained in:
parent
0e5925e1cb
commit
173b5a0b7f
@ -606,7 +606,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 {
|
||||
|
Loading…
Reference in New Issue
Block a user