updated on Thu Jan 12 00:00:55 UTC 2012
[aur-mirror.git] / conky-nvidia / current-power.patch
blob1e7cf5a23d6e74583b933dce77e0099bffb3c556
1 diff -aur old/src/linux.c new/src/linux.c
2 --- old/src/linux.c 2010-10-05 23:29:36.000000000 +0200
3 +++ new/src/linux.c 2010-12-06 22:18:59.346667183 +0100
4 @@ -1671,6 +1671,8 @@
5 the tradition! */
6 else if (strncmp(buf, "POWER_SUPPLY_CURRENT_NOW=", 25) == 0)
7 sscanf(buf, "POWER_SUPPLY_CURRENT_NOW=%d", &present_rate);
8 + else if (strncmp(buf, "POWER_SUPPLY_POWER_NOW=", 23) == 0)
9 + sscanf(buf, "POWER_SUPPLY_POWER_NOW=%d", &present_rate);
10 else if (strncmp(buf, "POWER_SUPPLY_ENERGY_NOW=", 24) == 0)
11 sscanf(buf, "POWER_SUPPLY_ENERGY_NOW=%d", &remaining_capacity);
12 else if (strncmp(buf, "POWER_SUPPLY_ENERGY_FULL=", 25) == 0)