Skip to content

Commit 18dfce3

Browse files
committed
Jobqueue shows only pending jobs.
1 parent a030159 commit 18dfce3

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

interface/web/monitor/datalog_list.php

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,17 @@
4545
$app->auth->check_module_permissions('monitor');
4646

4747
$app->uses('listform_actions');
48-
$app->listform_actions->SQLExtWhere = "server_id != 0";
48+
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;
4959
$app->listform_actions->SQLOrderBy = "ORDER BY tstamp DESC, datalog_id DESC";
5060

5161
$app->listform_actions->onLoad();

0 commit comments

Comments
 (0)