wok rev 12194

lxpanel: add batt.chg.level.patch
author Richard Dunbar <mojo@slitaz.org>
date Mon Mar 26 00:34:43 2012 +0000 (2012-03-26)
parents 71abeb8b4744
children 329bc88c9d17
files lxpanel/receipt lxpanel/stuff/batt.chg.level.patch
line diff
     1.1 --- a/lxpanel/receipt	Mon Mar 26 01:32:05 2012 +0200
     1.2 +++ b/lxpanel/receipt	Mon Mar 26 00:34:43 2012 +0000
     1.3 @@ -19,6 +19,7 @@
     1.4  compile_rules()
     1.5  {
     1.6  	cd $src
     1.7 +        patch -p1 -i $stuff/batt.chg.level.patch
     1.8  	patch -p1 -i $stuff/configure_desktop_number.patch
     1.9  	patch -p1 -i $stuff/fix_position.patch
    1.10  	patch -p0 -i $stuff/cpu-size-color.patch || exit 1
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/lxpanel/stuff/batt.chg.level.patch	Mon Mar 26 00:34:43 2012 +0000
     2.3 @@ -0,0 +1,11 @@
     2.4 +--- /src/plugins/batt/batt_sys.c.orig
     2.5 ++++ /src/plugins/batt/batt_sys.c
     2.6 +@@ -220,7 +220,7 @@
     2.7 +     if (b->last_capacity < MIN_CAPACITY)
     2.8 + 	b->percentage = 0;
     2.9 +     else
    2.10 +-	b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit;
    2.11 ++	b->percentage = ((float) b->remaining_capacity * 100.0) / (float) b->last_capacity;
    2.12 + 	    
    2.13 +     if (b->percentage > 100)
    2.14 + 	b->percentage = 100;