diff --git a/html/inc/db_ops.inc b/html/inc/db_ops.inc
index c6f7cb44c8..94cce6dca8 100644
--- a/html/inc/db_ops.inc
+++ b/html/inc/db_ops.inc
@@ -155,14 +155,14 @@ class SqlQueryString {
$this->addeq('hostid');
$this->addeq('userid');
$this->addeq('teamid');
- if ($_GET['nsecs']) {
+ $this->addeq('exit_status');
+ if ($_GET['nsecs']) {
$_GET['received_time'] = time() - $_GET['nsecs'];
}
$this->addgt('received_time');
$this->addeqnz('server_state');
$this->addeqnz('outcome');
$this->addeqnz('client_state');
- $this->addeqnz('exit_status');
if ($_GET['clauses']) {
$this->addclause($_GET['clauses']);
}
@@ -334,6 +334,9 @@ WHERE
function show_failure_result_summary_by_platform() {
+ $_GET['table'] = 'result';
+ $_GET['sort_by'] = ''; // ignore sort
+
$query_appid = $_GET['appid'];
$query_received_time = time() - $_GET['nsecs'];