1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-09-29 21:49:07 +00:00
This commit is contained in:
su8 2018-07-30 14:57:42 +02:00 committed by Brenden Matthews
parent 388f47f20e
commit fa5e56720f

View File

@ -746,7 +746,7 @@ void human_readable(long long num, char *buf, int size) {
float fnum;
int precision;
int width;
const char *format;
static const char *const format = "%.*f%.1s";
/* Possibly just output as usual, for example for stdout usage */
if (!format_human_readable.get(*state)) {
@ -755,10 +755,8 @@ 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) {