We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a030159 commit 18dfce3Copy full SHA for 18dfce3
interface/web/monitor/datalog_list.php
@@ -45,7 +45,17 @@
45
$app->auth->check_module_permissions('monitor');
46
47
$app->uses('listform_actions');
48
-$app->listform_actions->SQLExtWhere = "server_id != 0";
+
49
+$servers = $app->db->queryAllRecords("SELECT server_id, updated FROM server");
50
51
+$sql = '(';
52
+foreach($servers as $s) {
53
+ $sql .= " (datalog_id > ".$s['updated']." AND server_id = ".$s['server_id'].") AND ";
54
+}
55
+$sql = substr($sql,0,-4);
56
+$sql .= ')';
57
58
+$app->listform_actions->SQLExtWhere = $sql;
59
$app->listform_actions->SQLOrderBy = "ORDER BY tstamp DESC, datalog_id DESC";
60
61
$app->listform_actions->onLoad();
0 commit comments