diff --git a/ChangeLog b/ChangeLog index b1d26d45..955a86c2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ # $Id$ +2006-11-15 + * Change linkstatus display for use_spacer. Closes bug #1577580. + 2006-11-14 * Fix compile error with --disable-x11. * Add new timed thread abstraction routines. diff --git a/src/conky.c b/src/conky.c index 9cde1d9c..617a46cc 100644 --- a/src/conky.c +++ b/src/conky.c @@ -3446,8 +3446,14 @@ static void generate_text_internal(char *p, int p_max_size, struct text_object * } OBJ(linkstatus) { - snprintf(p, p_max_size, "%d", + if (!use_spacer) { + snprintf(p, p_max_size, "%d", obj->data.net->linkstatus); + } else + { + snprintf(p, 6, "%d ", + obj->data.net->linkstatus); + } } #if defined(IMLIB2) && defined(X11) OBJ(image) {