1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-11-17 10:35:10 +00:00

No space between number and units please.

This commit is contained in:
Brenden Matthews 2009-02-17 22:50:43 -07:00
parent 482dd1b82f
commit f92978c5e5
2 changed files with 4 additions and 5 deletions

View File

@ -8,7 +8,6 @@
* change temp_print() from snprintf() to spaced_print() * change temp_print() from snprintf() to spaced_print()
* remove decimals from temp_print() as none of the current sources can * remove decimals from temp_print() as none of the current sources can
supply values smaller than 1 degree (C or F, doesn't matter) supply values smaller than 1 degree (C or F, doesn't matter)
* add a space between number and the unit in human_readable()
* fix number printing in human_readable() * fix number printing in human_readable()
* network $upspeed and $downspeed now use human_readable() * network $upspeed and $downspeed now use human_readable()
* Fix diskio_read/write patch sf.net id #2493084 (thanks Alexander) * Fix diskio_read/write patch sf.net id #2493084 (thanks Alexander)

View File

@ -1139,12 +1139,12 @@ static void human_readable(long long num, char *buf, int size)
if (short_units) { if (short_units) {
width = 7; width = 7;
format = "%lld %.1s"; format = "%lld%.1s";
format2 = "%.*f %.1s"; format2 = "%.*f%.1s";
} else { } else {
width = 9; width = 9;
format = "%lld %s"; format = "%lld%s";
format2 = "%.*f %s"; format2 = "%.*f%s";
} }
if (llabs(num) < 1024LL) { if (llabs(num) < 1024LL) {