2011-08-29 Dario Rodriguez <dario.rodriguez@artica.es>

* 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
This commit is contained in:
darode 2011-08-29 16:36:43 +00:00
parent e6f387f5d0
commit 32b859c946
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,10 @@
2011-08-29 Dario Rodriguez <dario.rodriguez@artica.es>
* 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 <javier.lanz@artica.es>
* operation/agentes/ver_agente.php: Fixed a bug filling modules combo

View File

@ -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 {