mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-27 04:32:55 +00:00
Revert "Fix short_units for below kilo values."
I revert this, because it breaks padding for numbers < 1000, which causes ugly text shifts when
numbers change from <1000 to >1000. If someone disagrees with this, we can talk about it in
#conky. I asked before doing this, but noone seemed to care.
This "fixes" bug #3389641 on sf.net, reported by sakalisc.
This reverts commit c9cf08d9e9
.
Conflicts:
src/conky.cc
This commit is contained in:
parent
c9a306defd
commit
6480df48f3
@ -720,7 +720,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.get(*state) || llabs(num) < 1000LL) {
|
||||
if (short_units.get(*state)) {
|
||||
width = 5;
|
||||
format = "%.*f%.1s";
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user