2012-01-31 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* include/functions_reporting: Fixed bug when the module has only 
	one value.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5455 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2012-01-31 12:52:22 +00:00
parent 1aec883b39
commit 4276ecf461
2 changed files with 22 additions and 22 deletions

View File

@ -1,3 +1,8 @@
2012-01-31 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* include/functions_reporting: Fixed bug when the module has only
one value.
2012-01-31 Vanessa Gil <vanessa.gil@artica.es> 2012-01-31 Vanessa Gil <vanessa.gil@artica.es>
* include/functions_reporting: Modified SLA reports when * include/functions_reporting: Modified SLA reports when

View File

@ -718,7 +718,6 @@ function reporting_get_agentmodule_sla_array ($id_agent_module, $period = 0, $mi
$first_data = array_shift ($interval_data); $first_data = array_shift ($interval_data);
$previous_utimestamp = $date - $period; $previous_utimestamp = $date - $period;
if ($previous_utimestamp == $first_data['utimestamp']) {
$previous_value = $first_data ['datos']; $previous_value = $first_data ['datos'];
$previous_status = 0; $previous_status = 0;
@ -738,10 +737,6 @@ function reporting_get_agentmodule_sla_array ($id_agent_module, $period = 0, $mi
$previous_status = 1; $previous_status = 1;
} }
} }
}
else {
$previous_status = 1;
}
$data_colors = array(); $data_colors = array();
$i = 0; $i = 0;