2010-10-29 Ramon Novoa <rnovoa@artica.es>

* include/fgraph.php: Do not propagate compressed data to dates in the
	  future to make the baseline clearer.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3481 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
ramonn 2010-10-29 13:30:56 +00:00
parent 4c5e817aff
commit f6e06da369
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2010-10-29 Ramon Novoa <rnovoa@artica.es>
* include/fgraph.php: Do not propagate compressed data to dates in the
future to make the baseline clearer.
2010-10-29 Miguel de Dios <miguel.dedios@artica.es>
* extensions/dbmanager.php, godmode/agentes/module_manager_editor.php,

View File

@ -1467,7 +1467,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
$previous_data = $total;
// Compressed data
} else {
if ($uncompressed_module) {
if ($uncompressed_module || ($timestamp > time ())) {
$chart[$timestamp]['sum'] = 0;
$chart[$timestamp]['min'] = 0;
$chart[$timestamp]['max'] = 0;
@ -1485,7 +1485,7 @@ function grafico_modulo_sparse ($agent_module_id, $period, $show_events,
$chart[$timestamp]['alert'] = $alert_value;
$chart[$timestamp]['baseline'] = array_shift ($baseline_data);
if ($chart[$timestamp]['baseline'] == NULL) {
$baseline = 0;
$chart[$timestamp]['baseline'] = 0;
}
}