1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-18 02:55:12 +00:00

Correct width of formated data rates.

This commit is contained in:
Carl A Joslin 2021-01-16 10:17:48 +00:00 committed by Brenden Matthews
parent e2869ac8d3
commit 92df0cf550

View File

@ -591,10 +591,10 @@ void human_readable(long long num, char *buf, int size) {
return; return;
} }
if (short_units.get(*state)) { if (short_units.get(*state)) {
width = 5; width = 6;
format = "%.*f %.1s"; format = "%.*f %.1s";
} else { } else {
width = 7; width = 8;
format = "%.*f %-.3s"; format = "%.*f %-.3s";
} }