Skip to content
Snippets Groups Projects
Commit 6a3742bc authored by Marius Cramer's avatar Marius Cramer
Browse files

- fixed monitor cron job not deleting old values from db

parent 64466c9c
No related branches found
No related tags found
No related merge requests found
......@@ -666,7 +666,7 @@ class monitor_tools {
// $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 @@ class monitor_tools {
'WHERE ' .
' type = ?' .
'AND ' .
' created < ? ' .
' created < UNIX_TIMESTAMP() - ?' .
'AND ' .
' server_id = ?';
$app->dbmaster->query($sql, $type, $old, $serverId);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment