[Pkg-wmaker-commits] [wmbattery] 34/241: * (acpi) don't display the rather wacky "- :0" on an almost full battery

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:37:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

dtorrance-guest pushed a commit to branch master
in repository wmbattery.

commit 95ceed111715a29291f5589ee5afca50efb918fe
Author: joey <joey at a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Date:   Wed Apr 10 03:25:32 2002 +0000

       * (acpi) don't display the rather wacky "- :0" on an almost full battery
---
 acpi.c           | 2 ++
 debian/changelog | 6 ++++++
 2 files changed, 8 insertions(+)

diff --git a/acpi.c b/acpi.c
index 8248ea7..d945dcd 100644
--- a/acpi.c
+++ b/acpi.c
@@ -247,6 +247,8 @@ int acpi_read (int battery, apm_info *info) {
 				info->ac_line_status = 1;
 				info->battery_flags = info->battery_flags | BATTERY_FLAGS_CHARGING;
 				info->battery_time = -1 * (float) (acpi_batt_capacity[battery] - pcap) / (float) rate * 60;
+				if (abs(info->battery_time) < 0.5)
+					info->battery_time = 0;
 			}
 			else if (state[0] == 'o') { /* ok */
 				/* charged, on ac power */
diff --git a/debian/changelog b/debian/changelog
index d696424..c0da9e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+wmbattery (2.05) unstable; urgency=low
+
+  * (acpi) don't display the rather wacky "- :0" on an almost full battery
+
+ -- Joey Hess <joeyh at debian.org>  Tue,  9 Apr 2002 23:19:35 -0400
+
 wmbattery (2.04) unstable; urgency=low
 
   * Work around stupid ACPI output format  bug. Critical battery detection

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-wmaker/wmbattery.git



More information about the Pkg-wmaker-commits mailing list