SOURCES: apcupsd-pcnet-seconds.patch (NEW) - TIMELEFT form UPS is in second...
marcus
marcus at pld-linux.org
Sun Dec 14 10:45:10 CET 2008
Author: marcus Date: Sun Dec 14 09:45:10 2008 GMT
Module: SOURCES Tag: HEAD
---- Log message:
- TIMELEFT form UPS is in seconds, not minutes. apcupsd requires in minutes.
---- Files affected:
SOURCES:
apcupsd-pcnet-seconds.patch (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SOURCES/apcupsd-pcnet-seconds.patch
diff -u /dev/null SOURCES/apcupsd-pcnet-seconds.patch:1.1
--- /dev/null Sun Dec 14 10:45:11 2008
+++ SOURCES/apcupsd-pcnet-seconds.patch Sun Dec 14 10:45:05 2008
@@ -0,0 +1,12 @@
+diff -uNr apcupsd-3.14.4/src/drivers/pcnet/pcnet.c apcupsd-3.14.4.new/src/drivers/pcnet/pcnet.c
+--- apcupsd-3.14.4/src/drivers/pcnet/pcnet.c 2007-10-06 16:52:52.000000000 +0200
++++ apcupsd-3.14.4.new/src/drivers/pcnet/pcnet.c 2008-12-14 10:35:02.240131748 +0100
+@@ -208,7 +208,7 @@
+ break;
+ case CI_RUNTIM:
+ Dmsg1(80, "Got CI_RUNTIM: %s\n", value);
+- ups->TimeLeft = atof(value);
++ ups->TimeLeft = atof(value) / 60;
+ break;
+ case CI_ITEMP:
+ Dmsg1(80, "Got CI_ITEMP: %s\n", value);
================================================================
More information about the pld-cvs-commit
mailing list