Marius Cramer
2015-05-26 6a3742bc7837817a786552c9c4f1339aac983c1e
server/lib/classes/monitor_tools.inc.php
@@ -666,7 +666,7 @@
      // $now = time();
      // $old = $now - (4 * 60); // 4 minutes
      $old = 'UNIX_TIMESTAMP() - 240';
      $old = 240; //seconds
      /*
       * ATTENTION if i do NOT pay attention of the server id, i delete all data (of the type)
@@ -680,7 +680,7 @@
         'WHERE ' .
         '  type = ?' .
         'AND ' .
         '  created < ? ' .
         '  created < UNIX_TIMESTAMP() - ?' .
         'AND ' .
         '  server_id = ?';
      $app->dbmaster->query($sql, $type, $old, $serverId);