diff --git a/ChangeLog b/ChangeLog index dc069bc4..cdd1fbef 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,8 @@ # $Id$ 2008-03-28 - * Fixed messed up percentages (fs_free_perc, fs_used_perc, mpd_percent). + * Fixed messed up percentages (fs_free_perc, fs_used_perc, mpd_percent, + battery_percent). 2008-03-24 * Fixed for specifying a non-existent configuration file. diff --git a/src/conky.c b/src/conky.c index d3c0ef9f..123f6819 100644 --- a/src/conky.c +++ b/src/conky.c @@ -4269,8 +4269,8 @@ static void generate_text_internal(char *p, int p_max_size, get_battery_stuff(p, p_max_size, obj->data.s, BATTERY_TIME); } OBJ(battery_percent) { - spaced_print(p, p_max_size, "%*d", pad_percents, - "battery_percent", get_battery_perct(obj->data.s)); + spaced_print(p, p_max_size, "%*d", 4, "battery_percent", + pad_percents, get_battery_perct(obj->data.s)); } OBJ(battery_bar) { new_bar(p, obj->a, obj->b, get_battery_perct_bar(obj->data.s));