2009-12-14 Miguel de Dios <miguel.dedios@artica.es>

* include/functions_servers.php: tiny fix (a zero division) the tactical
	view when start with a empty Pandora. 
	


git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@2202 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
mdtrooper 2009-12-16 11:19:09 +00:00
parent dc11bebc15
commit ba11b4aa78
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2009-12-14 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_servers.php: tiny fix (a zero division) the tactical
view when start with a empty Pandora.
2009-12-14 Miguel de Dios <miguel.dedios@artica.es>
* include/fgraph.php: fix in the function "grafico_modulo_boolean" for

View File

@ -73,7 +73,10 @@ function get_server_performance () {
$data["avg_interval_remote_modules"] = get_db_sql ("SELECT AVG(module_interval) FROM tagente_modulo, tagente_estado 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");
$data["remote_modules_rate"] = $data["total_remote_modules"] / $data["avg_interval_remote_modules"];
if ($data["total_remote_modules"] == 0)
$data["remote_modules_rate"] = 0;
else
$data["remote_modules_rate"] = $data["total_remote_modules"] / $data["avg_interval_remote_modules"];
// For local modules (ignoring local modules with custom invervals for simplicity).