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:
parent
4c5e817aff
commit
f6e06da369
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue