diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2012-05-04 20:00:41 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2012-05-04 20:00:41 +0000 |
commit | b2c353d874b85e06f355a9419852e2616613c7d0 (patch) | |
tree | f0773e0a930d308198ef5036d4f74e7f53015e6e /extra/xfce4-battery-plugin | |
parent | 0a24fb835cac4007388213ad0afb15257b035b14 (diff) |
Fri May 4 20:00:31 UTC 2012
Diffstat (limited to 'extra/xfce4-battery-plugin')
-rw-r--r-- | extra/xfce4-battery-plugin/show-time-when-on-battery.patch | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/extra/xfce4-battery-plugin/show-time-when-on-battery.patch b/extra/xfce4-battery-plugin/show-time-when-on-battery.patch deleted file mode 100644 index d5ed36460..000000000 --- a/extra/xfce4-battery-plugin/show-time-when-on-battery.patch +++ /dev/null @@ -1,21 +0,0 @@ -From f4a68f05e838291d1ddcb60f7c719873bfd57d27 Mon Sep 17 00:00:00 2001 -From: flo <florian.a.jung@web.de> -Date: Fri, 18 Feb 2011 17:21:12 +0000 -Subject: Show time when on battery power (bug #3736). - ---- -diff --git a/panel-plugin/libacpi.c b/panel-plugin/libacpi.c -index 87339b7..838a760 100644 ---- a/panel-plugin/libacpi.c -+++ b/panel-plugin/libacpi.c -@@ -787,7 +787,7 @@ int read_acpi_state_sysfs(int battery) - acpistate->rcapacity = read_sysfs_int(buf); - acpistate->percentage = (((float) acpistate->rcapacity)/acpiinfo->last_full_capacity) * 100; - } -- if (strcmp(name,"current_now") == 0) -+ if ((strcmp(name,"current_now") == 0) || (strcmp(name,"power_now") == 0)) - { - sprintf(buf,"%s/%s",batteries[battery], name); - acpistate->prate = read_sysfs_int(buf); --- -cgit v0.9.0.2 |