2009-03-11 Esteban Sanchez <estebans@artica.es>

* include/functions_reporting.php: Fixed an error on get_group_stats()
        that gives wrong monitor status count because it was counting some
        modules twice.



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@1524 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
Esteban Sanchez 2009-03-11 14:35:32 +00:00
parent df43c25f45
commit acb8104832
1 changed files with 0 additions and 1 deletions

View File

@ -169,7 +169,6 @@ function get_group_stats ($id_group = 0) {
*/
if ($data["monitor_bad"] > 0 && $data["monitor_checks"] > 0) {
echo $data["monitor_bad"].' / '.$data["monitor_checks"];
$data["monitor_health"] = format_numeric (100 - ($data["monitor_bad"] / ($data["monitor_checks"] / 100)), 1);
} else {
$data["monitor_health"] = 100;