wok diff lxpanel/stuff/batt.chg.level.patch @ rev 15721

Move from undigest: bullet bullet-dev connman-ui cplay dconf dconf-dev dfc dnstop efl efl-dev evolution-data-server evolution-data-server-dev goaccess granite granite-dev granite-demo l3afpad ldm linmodem-hsfmodem marlin marlin-dev miniupnpd
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Dec 26 13:16:14 2013 +0000 (2013-12-26)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/lxpanel/stuff/batt.chg.level.patch	Thu Dec 26 13:16:14 2013 +0000
     1.3 @@ -0,0 +1,11 @@
     1.4 +--- /src/plugins/batt/batt_sys.c.orig
     1.5 ++++ /src/plugins/batt/batt_sys.c
     1.6 +@@ -220,7 +220,7 @@
     1.7 +     if (b->last_capacity < MIN_CAPACITY)
     1.8 + 	b->percentage = 0;
     1.9 +     else
    1.10 +-	b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit;
    1.11 ++	b->percentage = ((float) b->remaining_capacity * 100.0) / (float) b->last_capacity;
    1.12 + 	    
    1.13 +     if (b->percentage > 100)
    1.14 + 	b->percentage = 100;