From f92978c5e5035b70d44a98fc49328d8e3df32316 Mon Sep 17 00:00:00 2001 From: Brenden Matthews Date: Tue, 17 Feb 2009 22:50:43 -0700 Subject: [PATCH] No space between number and units please. --- ChangeLog | 1 - src/conky.c | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/ChangeLog b/ChangeLog index f97ca1be..316ec97e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/src/conky.c b/src/conky.c index 2138a4bf..9b2fd634 100644 --- a/src/conky.c +++ b/src/conky.c @@ -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) {