From da117723ef5c1296a110d12c22248f89375362fd Mon Sep 17 00:00:00 2001 From: Arturo Gonzalez Date: Thu, 7 Sep 2017 15:19:03 +0200 Subject: [PATCH] Updated module chart code --- pandora_console/include/functions_graph.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 8c01aa803c..fcb6d8fd10 100644 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -3940,7 +3940,7 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events, if ($fullscale) { $data2 = array(); - $previus_datas_cont = 0; + $previus_datas_cont = -1; $k = 0; for ($i = 0; $i <= $resolution; $i++) { $timestamp = $datelimit + ($interval * $i); @@ -3952,6 +3952,8 @@ function grafico_modulo_boolean_data ($agent_module_id, $period, $show_events, $k++; } } + html_debug($data2); + html_debug($data); $data = array_merge($data2, $data); $resolution += $previus_datas_cont; }