From: "Greg A. Woods" <[email protected]>

---
 clients/upsmon.c |   12 ++++--------
 1 file changed, 4 insertions(+), 8 deletions(-)

diff --git a/clients/upsmon.c b/clients/upsmon.c
index fe3f5fb..33d0a64 100644
--- a/clients/upsmon.c
+++ b/clients/upsmon.c
@@ -79,12 +79,6 @@ static int   opt_af = AF_UNSPEC;
 static struct sigaction sa;
 static sigset_t nut_upsmon_sigmask;
 
-#ifdef SHUT_RDWR
-#define        shutdown_how SHUT_RDWR
-#else
-#define        shutdown_how 2
-#endif
-
 static void setflag(int *val, int flag)
 {
        *val |= flag;
@@ -709,8 +703,10 @@ static void recalc(void)
                ups = ups->next;
        }
 
-       /* upsdebugx(3, "Current power value: %d", val_ol);
-       upsdebugx(3, "Minimum power value: %d", minsupplies); */
+#if 0
+       upsdebugx(3, "Current power value: %d", val_ol);
+       upsdebugx(3, "Minimum power value: %d", minsupplies);
+#endif
 
        if (val_ol < minsupplies)
                forceshutdown();
-- 
1.7.9.2


_______________________________________________
Nut-upsdev mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsdev

Reply via email to