diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index bf937843c6..2cf1e50360 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2012-04-30 Vanessa Gil + + * godmode/servers/modificar_server.php: Changed values of columns 'load', + 'modules' and 'lag'. + 2012-04-28 Junichi Satoh * godmode/setup/setup.php: Fixed SQL error with PostgreSQL. diff --git a/pandora_console/godmode/servers/modificar_server.php b/pandora_console/godmode/servers/modificar_server.php index 218bc15e56..bde9f5d158 100644 --- a/pandora_console/godmode/servers/modificar_server.php +++ b/pandora_console/godmode/servers/modificar_server.php @@ -137,12 +137,23 @@ else { $data[2] = ''.$server["img"].' ('.ucfirst($server["type"]).")"; if ($server["master"] == 1) $data[2] .= ui_print_help_tip (__("This is a master server"), true); + + switch ($server['type']) { + case "snmp": + case "event": + $data[3] = 'N/A'; + $data[4] = 'N/A'; + $data[5] = 'N/A'; + break; + default: + // Load + $data[3] = + progress_bar($server["load"], 60, 20, $server["lag_txt"], 0); + $data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"]; + $data[5] = ''.$server["lag_txt"].''; + break; + } - // Load - $data[3] = - progress_bar($server["load"], 60, 20, $server["lag_txt"], 0); - $data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"]; - $data[5] = ''.$server["lag_txt"].''; $data[6] = $server['threads'].' : '.$server['queued_modules']; $data[7] = ui_print_timestamp ($server['keepalive'], true);