diff options
Diffstat (limited to 'extra/xfce4-battery-plugin/show-time-when-on-battery.patch')
-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 |