From c58721eaf8a0a39544b3154991870c94e8d4b2e1 Mon Sep 17 00:00:00 2001 From: Ramon Novoa Date: Fri, 26 Sep 2014 10:06:00 +0200 Subject: [PATCH] Use the utimestamp to retrieve the latest events (timestamp is not indexed!) --- pandora_console/include/functions_events.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pandora_console/include/functions_events.php b/pandora_console/include/functions_events.php index e425c603ea..a2afc20e70 100644 --- a/pandora_console/include/functions_events.php +++ b/pandora_console/include/functions_events.php @@ -742,13 +742,13 @@ function events_print_event_table ($filter = "", $limit = 10, $width = 440, $ret $sql = sprintf ("SELECT * FROM tevento WHERE %s %s - ORDER BY timestamp DESC LIMIT %d", $agent_condition, $filter, $limit); + ORDER BY utimestamp DESC LIMIT %d", $agent_condition, $filter, $limit); break; case "oracle": $sql = sprintf ("SELECT * FROM tevento WHERE %s %s AND rownum <= %d - ORDER BY timestamp DESC", $agent_condition, $filter, $limit); + ORDER BY utimestamp DESC", $agent_condition, $filter, $limit); break; }