diff --git a/interface/web/monitor/datalog_list.php b/interface/web/monitor/datalog_list.php index 25005a7e1575298e77720c98615c7b5b67073e9e..82ab334195b87f016f988ca305e5ba4a8e3444a8 100644 --- a/interface/web/monitor/datalog_list.php +++ b/interface/web/monitor/datalog_list.php @@ -45,7 +45,17 @@ $list_def_file = "list/datalog.list.php"; $app->auth->check_module_permissions('monitor'); $app->uses('listform_actions'); -$app->listform_actions->SQLExtWhere = "server_id != 0"; + +$servers = $app->db->queryAllRecords("SELECT server_id, updated FROM server"); + +$sql = '('; +foreach($servers as $s) { + $sql .= " (datalog_id > ".$s['updated']." AND server_id = ".$s['server_id'].") AND "; +} +$sql = substr($sql,0,-4); +$sql .= ')'; + +$app->listform_actions->SQLExtWhere = $sql; $app->listform_actions->SQLOrderBy = "ORDER BY tstamp DESC, datalog_id DESC"; $app->listform_actions->onLoad();