summaryrefslogtreecommitdiff
path: root/desktop/icewm/patches/aapm_power.patch
diff options
context:
space:
mode:
authorRobby Workman <rworkman@slackbuilds.org>2016-01-03 17:14:14 -0600
committerRobby Workman <rworkman@slackbuilds.org>2016-01-10 21:36:31 -0600
commite3cee0ccd7e3341c9e5464d740fe2afeff39d8f4 (patch)
tree11a6fc3aa3e2c0f7a129218f9e85ee16d4f42145 /desktop/icewm/patches/aapm_power.patch
parentde47a0f89562601b6b7fc4b6c110c58af606ebb8 (diff)
downloadslackbuilds-e3cee0ccd7e3341c9e5464d740fe2afeff39d8f4.tar.gz
desktop/icewm: Updated for version 1.3.12 (new upstream)
Thanks to _gin on LQ for the heads-up on this. Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'desktop/icewm/patches/aapm_power.patch')
-rw-r--r--desktop/icewm/patches/aapm_power.patch31
1 files changed, 0 insertions, 31 deletions
diff --git a/desktop/icewm/patches/aapm_power.patch b/desktop/icewm/patches/aapm_power.patch
deleted file mode 100644
index 292cdf4b8f..0000000000
--- a/desktop/icewm/patches/aapm_power.patch
+++ /dev/null
@@ -1,31 +0,0 @@
---- b/icewm-1.3.7/src/aapm.cc 2010-10-31 17:09:36.000000000 +0300
-+++ icewm-1.3.7/src/aapm.cc 2013-06-02 14:24:04.778299294 +0400
-@@ -614,6 +614,10 @@
- }
- strcat3(buf, "/sys/class/power_supply/", BATname, "/current_now", sizeof(buf));
- fd = fopen(buf, "r");
-+ if (fd == NULL) {
-+ strcat3(buf, "/sys/class/power_supply/", BATname, "/power_now", sizeof(buf));
-+ fd = fopen(buf, "r");
-+ }
- if (fd != NULL && fgets(buf, sizeof(buf), fd)) {
- //In case it contains non-numeric value
- if (sscanf(buf,"%d", &BATrate) <= 0) {
-@@ -706,7 +710,7 @@
- //did we parse the needed values successfully?
- BATcapacity_full >= 0 && BATcapacity_remain >= 0 && BATrate > 0) {
- BATtime_remain = (int) (60 * (double)(BATcapacity_remain) / BATrate);
-- sprintf(bat_info, "%d:%02d", BATtime_remain / 60, BATtime_remain % 60);
-+ sprintf(bat_info, "%d:%02d %.1fW", BATtime_remain / 60, BATtime_remain % 60, (double) BATrate / 1000000);
- }
- else if (BATpresent == BAT_PRESENT &&
- //did we parse the needed values successfully?
-@@ -1075,7 +1079,7 @@
- if ((mode == ACPI || mode == SYSFS) && acpiBatteries[i]->present == BAT_ABSENT)
- continue;
- if (taskBarShowApmTime)
-- strcat(buf, "0:00");
-+ strcat(buf, "0:00 0.0W");
- else
- strcat(buf, "100%");
- strcat(buf, "C");