From 6e37892266336330bc32e4102a875e4085dbdbdc Mon Sep 17 00:00:00 2001 From: tbrehm <t.brehm@ispconfig.org> Date: Thu, 11 Dec 2008 16:40:41 -0500 Subject: [PATCH] delete only records for the local server from datalog so records with server_id 0 were preserverd. --- server/cron_daily.php | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/server/cron_daily.php b/server/cron_daily.php index 1dab45c..7aa6af2 100644 --- a/server/cron_daily.php +++ b/server/cron_daily.php @@ -130,12 +130,12 @@ ####################################################################################################### //* Keep 7 days in sys_log $tstamp = time() - (60*60*24*7); -$sql = "DELETE FROM sys_log WHERE tstamp < $tstamp"; +$sql = "DELETE FROM sys_log WHERE tstamp < $tstamp AND server_id = ".$conf["server_id"]; $app->db->query($sql); //* Keep 7 days in sys_datalog $tstamp = time() - (60*60*24*7); -$sql = "DELETE FROM sys_datalog WHERE tstamp < $tstamp"; +$sql = "DELETE FROM sys_datalog WHERE tstamp < $tstamp AND server_id = ".$conf["server_id"]; $app->db->query($sql); -- Gitblit v1.9.1