diff options
author | ponce <matteo.bernardini@gmail.com> | 2011-12-27 01:47:27 -0600 |
---|---|---|
committer | Robby Workman <rworkman@slackbuilds.org> | 2011-12-27 10:15:25 -0600 |
commit | de24c459de25d0d58acabcf0a533715cb029a7db (patch) | |
tree | 49de3534005cd14c0a81f740c761b9f6b1e8bd00 /desktop/lxpanel/battery-applet.patch | |
parent | 94119c9b6c41bd710f5dea8c85235c2b97a3fb96 (diff) |
desktop/lxpanel: Updated for version 20111223_ef3cf14
Signed-off-by: Erik Hanson <erik@slackbuilds.org>
Diffstat (limited to 'desktop/lxpanel/battery-applet.patch')
-rw-r--r-- | desktop/lxpanel/battery-applet.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/desktop/lxpanel/battery-applet.patch b/desktop/lxpanel/battery-applet.patch deleted file mode 100644 index c2f5b93007efc..0000000000000 --- a/desktop/lxpanel/battery-applet.patch +++ /dev/null @@ -1,31 +0,0 @@ -From 93d9373574fcb0ed63cc4be7807343b018daad1a Mon Sep 17 00:00:00 2001 -From: Marty Jack <martyj@linux.local> -Date: Thu, 19 Aug 2010 22:52:44 -0400 -Subject: [PATCH] Battery percentage incorrectly always evaluates as 100 percent (Bug3006059) - ---- - src/plugins/batt/batt_sys.c | 4 ++-- - 1 files changed, 2 insertions(+), 2 deletions(-) - -diff --git a/src/plugins/batt/batt_sys.c b/src/plugins/batt/batt_sys.c -index 3c325b8..2ece803 100644 ---- a/src/plugins/batt/batt_sys.c -+++ b/src/plugins/batt/batt_sys.c -@@ -150,7 +150,7 @@ void battery_update( battery *b ) { - b->state = "available"; - } - else if ( strcmp("energy_now", sys_file ) == 0 ) { -- b->remaining_capacity = get_unit_value((gchar*) file_content) / 1000; -+ b->remaining_energy = get_unit_value((gchar*) file_content) / 1000; - if (!b->state) - b->state = "available"; - } -@@ -215,7 +215,7 @@ void battery_update( battery *b ) { - if (b->last_capacity < MIN_CAPACITY) - b->percentage = 0; - else -- b->percentage = b->remaining_capacity * 100 / b->last_capacity; -+ b->percentage = ((float) b->remaining_energy * 100.0) / (float) b->last_capacity_unit; - - if (b->percentage > 100) - b->percentage = 100; |