1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 18:45:10 +00:00
This reverts commit fa5e56720f.
This commit is contained in:
lasers 2018-12-16 11:05:11 -06:00
parent 7cdeeae6d9
commit dfdd573043

View File

@ -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) {