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:
parent
55b12db3ad
commit
4c916bbce5
|
@ -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>
|
2010-11-03 Sergio Martin <sergio.martin@artica.es>
|
||||||
|
|
||||||
* include/functions_modules.php
|
* include/functions_modules.php
|
||||||
|
|
|
@ -429,7 +429,7 @@ function get_agentmodule_sla ($id_agent_module, $period = 0, $min_value = 1, $ma
|
||||||
if (!empty($timeTo)) {
|
if (!empty($timeTo)) {
|
||||||
$sql .= ' AND TIME(FROM_UNIXTIME(utimestamp)) <= "' . $timeTo . '"';
|
$sql .= ' AND TIME(FROM_UNIXTIME(utimestamp)) <= "' . $timeTo . '"';
|
||||||
}
|
}
|
||||||
|
$sql .= ' ORDER BY utimestamp ASC';
|
||||||
$interval_data = get_db_all_rows_sql ($sql, true);
|
$interval_data = get_db_all_rows_sql ($sql, true);
|
||||||
if ($interval_data === false) $interval_data = array ();
|
if ($interval_data === false) $interval_data = array ();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue