wok view lxpanel/stuff/batt.chg.level.patch @ rev 14882

python-socketpool, python-restkit, python-http-parser, python-couchdbkit: we need a meaningfull TARBALL to store sources on mirror
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed Jul 24 15:51:20 2013 +0000 (2013-07-24)
parents
children
line source
1 --- /src/plugins/batt/batt_sys.c.orig
2 +++ /src/plugins/batt/batt_sys.c
3 @@ -220,7 +220,7 @@
4 if (b->last_capacity < MIN_CAPACITY)
5 b->percentage = 0;
6 else
7 - b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit;
8 + b->percentage = ((float) b->remaining_capacity * 100.0) / (float) b->last_capacity;
10 if (b->percentage > 100)
11 b->percentage = 100;