mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-11-17 02:25:09 +00:00
No space between number and units please.
This commit is contained in:
parent
482dd1b82f
commit
f92978c5e5
@ -8,7 +8,6 @@
|
||||
* change temp_print() from snprintf() to spaced_print()
|
||||
* remove decimals from temp_print() as none of the current sources can
|
||||
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()
|
||||
* network $upspeed and $downspeed now use human_readable()
|
||||
* Fix diskio_read/write patch sf.net id #2493084 (thanks Alexander)
|
||||
|
@ -1139,12 +1139,12 @@ static void human_readable(long long num, char *buf, int size)
|
||||
|
||||
if (short_units) {
|
||||
width = 7;
|
||||
format = "%lld %.1s";
|
||||
format2 = "%.*f %.1s";
|
||||
format = "%lld%.1s";
|
||||
format2 = "%.*f%.1s";
|
||||
} else {
|
||||
width = 9;
|
||||
format = "%lld %s";
|
||||
format2 = "%.*f %s";
|
||||
format = "%lld%s";
|
||||
format2 = "%.*f%s";
|
||||
}
|
||||
|
||||
if (llabs(num) < 1024LL) {
|
||||
|
Loading…
Reference in New Issue
Block a user