Skip to content

Commit 8081dfc

Browse files
author
Marius Cramer
committed
- fixed sql query from previous commit
1 parent 6a3742b commit 8081dfc

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

server/lib/classes/monitor_tools.inc.php

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -676,13 +676,7 @@ public function delOldRecords($type, $serverId) {
676676
* even though it is the NEWEST data of this server. To avoid this i HAVE to include
677677
* the server-id!
678678
*/
679-
$sql = 'DELETE FROM monitor_data ' .
680-
'WHERE ' .
681-
' type = ?' .
682-
'AND ' .
683-
' created < UNIX_TIMESTAMP() - ?' .
684-
'AND ' .
685-
' server_id = ?';
679+
$sql = 'DELETE FROM `monitor_data` WHERE `type` = ? AND `created` < UNIX_TIMESTAMP() - ? AND `server_id` = ?';
686680
$app->dbmaster->query($sql, $type, $old, $serverId);
687681
}
688682

0 commit comments

Comments
 (0)