mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 18:45:10 +00:00
Revert "conky.cc: Fix for https://github.com/brndnmtthws/conky/issues/352 (#540)"
This reverts commit fa5e56720f
.
This commit is contained in:
parent
7cdeeae6d9
commit
dfdd573043
@ -741,7 +741,7 @@ void human_readable(long long num, char *buf, int size) {
|
||||
float fnum;
|
||||
int precision;
|
||||
int width;
|
||||
static const char *const format = "%.*f%.1s";
|
||||
const char *format;
|
||||
|
||||
/* Possibly just output as usual, for example for stdout usage */
|
||||
if (!format_human_readable.get(*state)) {
|
||||
@ -750,8 +750,10 @@ void human_readable(long long num, char *buf, int size) {
|
||||
}
|
||||
if (short_units.get(*state)) {
|
||||
width = 5;
|
||||
format = "%.*f%.1s";
|
||||
} else {
|
||||
width = 7;
|
||||
format = "%.*f%-3s";
|
||||
}
|
||||
|
||||
if (llabs(num) < 1000LL) {
|
||||
|
Loading…
Reference in New Issue
Block a user