]> git.pld-linux.org Git - packages/apcupsd.git/commitdiff
- TIMELEFT form UPS is in seconds, not minutes. apcupsd requires in minutes.
authormarcus <marcus@pld-linux.org>
Sun, 14 Dec 2008 09:45:05 +0000 (09:45 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    apcupsd-pcnet-seconds.patch -> 1.1

apcupsd-pcnet-seconds.patch [new file with mode: 0644]

diff --git a/apcupsd-pcnet-seconds.patch b/apcupsd-pcnet-seconds.patch
new file mode 100644 (file)
index 0000000..b993ee6
--- /dev/null
@@ -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);
This page took 0.121138 seconds and 4 git commands to generate.