diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 681fcac5c7..b417bee697 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-11-03 Ramon Novoa + + * include/functions_reporting.php: Order results before calculating + the SLA. + 2010-11-03 Sergio Martin * include/functions_modules.php diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 451c8d06da..dc6edee059 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -429,7 +429,7 @@ function get_agentmodule_sla ($id_agent_module, $period = 0, $min_value = 1, $ma if (!empty($timeTo)) { $sql .= ' AND TIME(FROM_UNIXTIME(utimestamp)) <= "' . $timeTo . '"'; } - + $sql .= ' ORDER BY utimestamp ASC'; $interval_data = get_db_all_rows_sql ($sql, true); if ($interval_data === false) $interval_data = array ();