tbrehm
2012-02-22 e14e77916698098ba1b903edef36d2c5c2d19979
Fixed: FS#2082 - Use MySQL UNIX_TIMESTAMP or time() Consistently
1 files modified
6 ■■■■■ changed files
server/mods-available/monitor_core_module.inc.php 6 ●●●●● patch | view | raw | blame | history
server/mods-available/monitor_core_module.inc.php
@@ -807,8 +807,10 @@
    private function _delOldRecords($type, $serverId) {
        global $app;
        $now = time();
        $old = $now - (4 * 60); // 4 minutes
        // $now = time();
        // $old = $now - (4 * 60); // 4 minutes
        $old = 'UNIX_TIMESTAMP() - 240';
        /*
         * ATTENTION if i do NOT pay attention of the server id, i delete all data (of the type)
         * of ALL servers. This means, if i have a multiserver-environment and a server has a