monit-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Changes to monit/p.y


From: Martin Pala
Subject: Changes to monit/p.y
Date: Thu, 09 Dec 2004 12:13:27 -0500

Index: monit/p.y
diff -u monit/p.y:1.186 monit/p.y:1.187
--- monit/p.y:1.186     Tue Sep 28 14:24:01 2004
+++ monit/p.y   Thu Dec  9 17:02:44 2004
@@ -30,7 +30,7 @@
  *  @author Martin Pala <address@hidden>
  *  @author Christian Hopp <address@hidden>
  *  @author Rory Toma <address@hidden>
- *  @version \$Id: p.y,v 1.186 2004/09/28 14:24:01 martinp Exp $
+ *  @version \$Id: p.y,v 1.187 2004/12/09 17:02:44 martinp Exp $
  */
 
 #include <config.h>
@@ -1124,7 +1124,7 @@
                 | IF INODE operator PERCENT THEN action1 recovery {
                     deviceset.resource= RESOURCE_ID_INODE;
                     deviceset.operator= $<number>3;
-                    deviceset.limit_percent= (int) $<real>4;
+                    deviceset.limit_percent= (int)($<real>4 * 10);
                     addeventaction(&(deviceset).action, $<number>6, 
$<number>7);
                     adddevice(&deviceset);
                   }
@@ -1147,7 +1147,7 @@
                 | IF SPACE operator PERCENT THEN action1 recovery {
                     deviceset.resource= RESOURCE_ID_SPACE;
                     deviceset.operator= $<number>3;
-                    deviceset.limit_percent= (int) $<real>4;
+                    deviceset.limit_percent= (int)($<real>4 * 10);
                     addeventaction(&(deviceset).action, $<number>6, 
$<number>7);
                     adddevice(&deviceset);
                   }




reply via email to

[Prev in Thread] Current Thread [Next in Thread]