use last full instead of design capacity
Brought to you by:
jpehrson
This one liner makes battstat use "last full" instead
of "design" capacity to calculate current percentage.
this might not be the desired behaviour
--- acpi-linux.c~ Sun Dec 15 17:33:58 2002
+++ acpi-linux.c Sun Dec 15 17:40:20 2002
@@ -108,7 +108,7 @@
if ((f = fopen("/proc/acpi/battery/BAT1/info", "r")))
{
- max_capacity = al_get_field_int(f, "design
capacity");
+ max_capacity = al_get_field_int(f, "last full
capacity");
low_capacity = al_get_field_int(f, "design
capacity warning");
critical_capacity = al_get_field_int(f, "design
capacity low");
Logged In: YES
user_id=564701
I think this got applied - its in the Redhat 9 RPM, anyway