wok annotate lxpanel/stuff/batt.chg.level.patch @ rev 24934
updated musl-libc and musl-libc-dev (1.2.2 -> 1.2.3)
author | Hans-G?nter Theisgen |
---|---|
date | Wed Apr 13 17:42:49 2022 +0100 (2022-04-13) |
parents | |
children |
rev | line source |
---|---|
mojo@12194 | 1 --- /src/plugins/batt/batt_sys.c.orig |
mojo@12194 | 2 +++ /src/plugins/batt/batt_sys.c |
mojo@12194 | 3 @@ -220,7 +220,7 @@ |
mojo@12194 | 4 if (b->last_capacity < MIN_CAPACITY) |
mojo@12194 | 5 b->percentage = 0; |
mojo@12194 | 6 else |
mojo@12194 | 7 - b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit; |
mojo@12194 | 8 + b->percentage = ((float) b->remaining_capacity * 100.0) / (float) b->last_capacity; |
mojo@12194 | 9 |
mojo@12194 | 10 if (b->percentage > 100) |
mojo@12194 | 11 b->percentage = 100; |