2010-11-03 Ramon Novoa <rnovoa@artica.es>

* include/functions_reporting.php: Order results before calculating
	  the SLA.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3503 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Ramon Novoa 2010-11-03 13:35:39 +00:00
parent e846299ce7
commit b7ac5bae65
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2010-11-03 Ramon Novoa <rnovoa@artica.es>
* include/functions_reporting.php: Order results before calculating
the SLA.
2010-11-03 Sergio Martin <sergio.martin@artica.es>
* include/functions_modules.php

View File

@ -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 ();