diff --git a/scripts/zmstats.pl.in b/scripts/zmstats.pl.in index 68e8de6e4..09f2e00fa 100644 --- a/scripts/zmstats.pl.in +++ b/scripts/zmstats.pl.in @@ -80,7 +80,7 @@ while (!$zm_terminate) { } # Clear out statuses for Monitors that aren't updating themselves. - zmDbDo('DELETE FROM Monitor_Status WHERE UpdatedOn < timestamp(DATE_SUB(NOW(), INTERVAL 1 MINUTE))?'); + zmDbDo('DELETE FROM Monitor_Status WHERE UpdatedOn < timestamp(DATE_SUB(NOW(), INTERVAL 1 MINUTE))'); zmDbDo('DELETE FROM Events_Hour WHERE StartDateTime < DATE_SUB(NOW(), INTERVAL 1 hour)'); zmDbDo('DELETE FROM Events_Day WHERE StartDateTime < DATE_SUB(NOW(), INTERVAL 1 day)');