From 183e4cb627d5a5aa8d666db1fcddcc9a942199dc Mon Sep 17 00:00:00 2001 From: zarzuelo Date: Wed, 6 Jul 2011 08:05:05 +0000 Subject: [PATCH] 2011-07-06 Sergio Martin * include/functions_servers.php: Fixed divison by zero git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@4513 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/include/functions_servers.php | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 47347494d4..e65f1e04b3 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2011-07-06 Sergio Martin + + * include/functions_servers.php: Fixed divison by zero + 2011-07-05 Miguel de Dios * ChangeLog: fixed date of my last commit. diff --git a/pandora_console/include/functions_servers.php b/pandora_console/include/functions_servers.php index 8110439a6f..5a978c2fe3 100644 --- a/pandora_console/include/functions_servers.php +++ b/pandora_console/include/functions_servers.php @@ -84,7 +84,7 @@ function servers_get_performance () { WHERE tagente_modulo.id_agente_modulo = tagente_estado.id_agente_modulo AND disabled = 0 AND id_modulo != 1 AND module_interval > 0 AND utimestamp > 0"); - if ($data["total_remote_modules"] == 0) + if ($data["avg_interval_remote_modules"] == 0) $data["remote_modules_rate"] = 0; else $data["remote_modules_rate"] = $data["total_remote_modules"] / $data["avg_interval_remote_modules"];