1 diff -wbBur acpitool-0.5.1/src/acpitool.h acpitool-0.5.1.my/src/acpitool.h
2 --- acpitool-0.5.1/src/acpitool.h 2008-10-16 19:38:12.000000000 +0400
3 +++ acpitool-0.5.1.my/src/acpitool.h 2011-11-10 21:55:23.000000000 +0400
8 - char Charging_State[12];
9 - char Remaining_Cap[10];
10 - char Design_Cap[10];
11 - char LastFull_Cap[10];
12 - char Present_Rate[10];
13 + char Charging_State[13];
14 + char Remaining_Cap[13];
15 + char Design_Cap[13];
16 + char LastFull_Cap[13];
17 + char Present_Rate[13];
21 diff -wbBur acpitool-0.5.1/src/battery.cpp acpitool-0.5.1.my/src/battery.cpp
22 --- acpitool-0.5.1/src/battery.cpp 2009-08-13 23:42:43.000000000 +0400
23 +++ acpitool-0.5.1.my/src/battery.cpp 2011-11-10 21:48:22.000000000 +0400
27 memset(str, '\0', 100);
28 - for(int t=0; t<5; t++)
29 + for(int t=0; t<1; t++)
30 fgets(str, 100, power_fp); /* skip first 5 lines */
32 /* get battery status (full, charging, ...) */
37 - fgets(str, 100, power_fp); /* skip 1 line */
39 + fgets(str, 100, power_fp); /* cycle count - skip 1 line */
40 + fgets(str, 100, power_fp); /* voltage_min - skip 1 line */
43 memset(str, '\0', 100);
46 strncpy(batt_info->Model, "unknown", 7);
48 - fgets(str, 100, power_fp);
49 + fgets(str, 100, power_fp); /* manufacturer - skip 1 line */
52 memset(str, '\0', 100);