diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 90228f8887..bacd3f2d3b 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2010-09-09 Sancho Lerena + + * fgraph.php: Graph "Modules per agent" was not working properly + due a invalid reference to array. Fixed. + 2010-09-08 Miguel de Dios * godmode/alerts/alert_list.list.php: fixed the pagination when the list of diff --git a/pandora_console/include/fgraph.php b/pandora_console/include/fgraph.php index 4d863010a1..3e3abb0776 100644 --- a/pandora_console/include/fgraph.php +++ b/pandora_console/include/fgraph.php @@ -824,13 +824,13 @@ function graph_db_agentes_modulos ($width, $height) { $modules = get_db_all_rows_sql ('SELECT COUNT(id_agente_modulo),id_agente FROM tagente_modulo GROUP BY id_agente - ORDER BY 1 DESC LIMIT 8'); + ORDER BY 1 DESC LIMIT 10'); if ($modules === false) $modules = array (); foreach ($modules as $module) { $agent_name = get_agent_name ($module['id_agente'], "none"); - $data[$agent_name] = $module[0]; + $data[$agent_name] = $module['COUNT(id_agente_modulo)']; } if (! $graphic_type) {