From 4022fdeafd7bf5be5696f0055167a484d6bf7c7f Mon Sep 17 00:00:00 2001 From: slerena Date: Thu, 9 Sep 2010 05:16:36 +0000 Subject: [PATCH] 2010-09-09 Sancho Lerena * fgraph.php: Graph "Modules per agent" was not working properly due a invalid reference to array. Fixed. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3233 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/fgraph.php | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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) {