From 32b859c946d7b0361d7cdff0dc9da22988fd5b03 Mon Sep 17 00:00:00 2001 From: darode Date: Mon, 29 Aug 2011 16:36:43 +0000 Subject: [PATCH] 2011-08-29 Dario Rodriguez * include/functions_graph.php: Fixed a bug setting graphic * resolution to 1 that displays some errors with event graphs. Fixes: #3398524 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4843 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/include/functions_graph.php | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 3cb35e2dc2..5618e82301 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-08-29 Dario Rodriguez + + * include/functions_graph.php: Fixed a bug setting graphic resolution + to 1 that displays some errors with event graphs. + + Fixes: #3398524 + 2011-08-29 Javier Lanz * operation/agentes/ver_agente.php: Fixed a bug filling modules combo diff --git a/pandora_console/include/functions_graph.php b/pandora_console/include/functions_graph.php index 1737db1429..a1cabc53a9 100755 --- a/pandora_console/include/functions_graph.php +++ b/pandora_console/include/functions_graph.php @@ -1532,7 +1532,8 @@ function fs_agent_event_chart ($data, $width, $height, $step = 1) { $count = 0; $num_vlines = 0; foreach ($data as $name => $value) { - if ($count++ % $step == 0) { + + if (($step >= 1) && ($count++ % $step == 0)) { $show_name = '1'; $num_vlines++; } else {