# HG changeset patch # User Richard Dunbar # Date 1332722083 0 # Node ID 1134cd1d9d3c85632d04e7ec5375fc60d94ecff7 # Parent 71abeb8b474495cec23697a1588a7f017c6de767 lxpanel: add batt.chg.level.patch diff -r 71abeb8b4744 -r 1134cd1d9d3c lxpanel/receipt --- a/lxpanel/receipt Mon Mar 26 01:32:05 2012 +0200 +++ b/lxpanel/receipt Mon Mar 26 00:34:43 2012 +0000 @@ -19,6 +19,7 @@ compile_rules() { cd $src + patch -p1 -i $stuff/batt.chg.level.patch patch -p1 -i $stuff/configure_desktop_number.patch patch -p1 -i $stuff/fix_position.patch patch -p0 -i $stuff/cpu-size-color.patch || exit 1 diff -r 71abeb8b4744 -r 1134cd1d9d3c lxpanel/stuff/batt.chg.level.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lxpanel/stuff/batt.chg.level.patch Mon Mar 26 00:34:43 2012 +0000 @@ -0,0 +1,11 @@ +--- /src/plugins/batt/batt_sys.c.orig ++++ /src/plugins/batt/batt_sys.c +@@ -220,7 +220,7 @@ + if (b->last_capacity < MIN_CAPACITY) + b->percentage = 0; + else +- b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit; ++ b->percentage = ((float) b->remaining_capacity * 100.0) / (float) b->last_capacity; + + if (b->percentage > 100) + b->percentage = 100;