From 6bec6417ea9416fba4b5e536a4f8012aa3138bcd Mon Sep 17 00:00:00 2001 From: esanchezm Date: Fri, 14 Nov 2008 09:11:55 +0000 Subject: [PATCH] 2008-11-14 Esteban Sanchez * include/functions_reporting.php: Fixed an error when calculating working data modules that affects to strings modules. Thanks to Glen Eustace for the report and fix. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1243 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 6 ++++++ pandora_console/include/functions_reporting.php | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 9df9b73eb0..2226809688 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,9 @@ +2008-11-14 Esteban Sanchez + + * include/functions_reporting.php: Fixed an error when calculating + working data modules that affects to strings modules. Thanks to Glen + Eustace for the report and fix. + 2008-11-11 Evi Vanoost * operation/servers/view_server.php: Small language fix diff --git a/pandora_console/include/functions_reporting.php b/pandora_console/include/functions_reporting.php index 17af49107b..b1b0a2d805 100644 --- a/pandora_console/include/functions_reporting.php +++ b/pandora_console/include/functions_reporting.php @@ -203,7 +203,7 @@ function get_group_stats ($id_group) { } elseif ($last_update >= ($row["current_interval"] * 2)) { //The utimestamp is greater than 2x the interval (it has timed out) $data["data_unknown"]++; - } elseif ($row["datos"] != 0) { + } elseif ($row["datos"]) { //Status is something $data["data_ok"]++; } else { @@ -712,4 +712,5 @@ function get_agents_detailed_reporting ($id_group, $period = 0, $date = 0, $retu echo $output; return $output; } + ?>