[Pkg-wmaker-commits] [wmbattery] 42/241: * Corrected inverted test to see if ac power is online, that was only called on 2 battery systems. Closes: #152356

Doug Torrance dtorrance-guest at moszumanska.debian.org
Mon Aug 24 23:37:28 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 a23c2bd98c35e6786fcb7d82d3a2c0bf21f60ec9
Author: joey <joey at a4a2c43b-8ac3-0310-8836-e0e880c912e2>
Date:   Thu Jul 11 01:05:04 2002 +0000

       * Corrected inverted test to see if ac power is online, that was only called
         on 2 battery systems. Closes: #152356
---
 acpi.c           | 2 +-
 debian/changelog | 7 +++++++
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/acpi.c b/acpi.c
index 7f2fb27..b034185 100644
--- a/acpi.c
+++ b/acpi.c
@@ -158,7 +158,7 @@ int find_thermal(void) {
 int on_ac_power (void) {
 	int i;
 	for (i = 0; i < acpi_ac_count; i++) {
-		if (strcmp("on-line", get_acpi_value(acpi_ac_adapter_status[i], "Status:")))
+		if (strcmp("on-line", get_acpi_value(acpi_ac_adapter_status[i], "Status:")) == 0)
 			return 1;
 		else
 			return 0;
diff --git a/debian/changelog b/debian/changelog
index 97b2b7a..eb89b98 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+wmbattery (2.11) unstable; urgency=low
+
+  * Corrected inverted test to see if ac power is online, that was only called
+    on 2 battery systems. Closes: #152356
+
+ -- Joey Hess <joeyh at debian.org>  Wed, 10 Jul 2002 16:10:40 -0400
+
 wmbattery (2.10) unstable; urgency=low
 
   * Deal with acpi putting nothing but "Present: no" in the info file for the

-- 
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