summaryrefslogtreecommitdiff
path: root/app-admin/conky-full/files/conky-1.8.1-battery-time.patch
blob: 66e37958a075cf3655be9e33f1e84d79c1586744 (plain)
1
2
3
4
5
6
7
8
9
10
11
--- a/src/linux.c.old	2012-01-12 08:18:58.525502553 -0500
+++ b/src/linux.c	2012-01-12 08:19:29.786069277 -0500
@@ -1671,6 +1671,8 @@ void get_battery_stuff(char *buffer, uns
  			the tradition! */
  			else if (strncmp(buf, "POWER_SUPPLY_CURRENT_NOW=", 25) == 0)
  				sscanf(buf, "POWER_SUPPLY_CURRENT_NOW=%d", &present_rate);
+			else if (strncmp(buf, "POWER_SUPPLY_POWER_NOW=", 23) == 0)
+				sscanf(buf, "POWER_SUPPLY_POWER_NOW=%d", &present_rate);
  			else if (strncmp(buf, "POWER_SUPPLY_ENERGY_NOW=", 24) == 0)
  				sscanf(buf, "POWER_SUPPLY_ENERGY_NOW=%d", &remaining_capacity);
  			else if (strncmp(buf, "POWER_SUPPLY_ENERGY_FULL=", 25) == 0)