1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2025-01-11 18:38:45 +00:00

oh yeah, battery_percent too

git-svn-id: https://conky.svn.sourceforge.net/svnroot/conky/trunk/conky1@1054 7f574dfc-610e-0410-a909-a81674777703
This commit is contained in:
Brenden Matthews 2008-03-28 23:23:21 +00:00
parent 60985a41e7
commit 59c5fe4d11
2 changed files with 4 additions and 3 deletions

View File

@ -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.

View File

@ -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));