mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Fix short_units for below kilo values.
Signed-off-by: Brenden Matthews <brenden@diddyinc.com>
This commit is contained in:
parent
eb06bb874c
commit
c9cf08d9e9
@ -620,7 +620,7 @@ void human_readable(long long num, char *buf, int size)
|
|||||||
spaced_print(buf, size, "%d", 6, round_to_int(num));
|
spaced_print(buf, size, "%d", 6, round_to_int(num));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (short_units) {
|
if (short_units || llabs(num) < 1000LL) {
|
||||||
width = 5;
|
width = 5;
|
||||||
format = "%.*f%.1s";
|
format = "%.*f%.1s";
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user