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"];