Delete column load in server list and Add version column, tiquet: #2144

This commit is contained in:
m-lopez-f 2015-05-25 15:47:30 +02:00
parent 0e013e2bcc
commit 120c7ac90e
1 changed files with 5 additions and 5 deletions

View File

@ -54,7 +54,7 @@ $table->head = array ();
$table->head[0] = __('Name');
$table->head[1] = __('Status');
$table->head[2] = __('Type');
$table->head[3] = __('Load') . ui_print_help_tip (__("Modules running on this server / Total modules of this type"), true);
$table->head[3] = __('Version');
$table->head[4] = __('Modules');
$table->head[5] = __('Lag') . ui_print_help_tip (__("Max. Delay(sec)/Modules delayed"), true);
$table->head[6] = __('T/Q') . ui_print_help_tip (__("Threads / Queued modules currently"), true);
@ -86,22 +86,22 @@ foreach ($servers as $server) {
if ($server["master"] == 1){
$data[2] .= ui_print_help_tip (__("This is a master server"), true);
}
$data[2] .= '</span> <span style="font-size:8px;"> v' . $server["version"]. '</span>';
//$data[2] .= '</span> <span style="font-size:8px;"> v' . $server["version"]. '</span>';
switch ($server['type']) {
case "snmp":
case "event":
$data[3] = 'N/A';
$data[3] = $server["version"];
$data[4] = 'N/A';
$data[5] = 'N/A';
break;
case "export":
$data[3] = progress_bar($server["load"], 60, 20, $server["lag_txt"], 0);
$data[3] = $server["version"];
$data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"];
$data[5] = 'N/A';
break;
default:
$data[3] = progress_bar($server["load"], 60, 20, $server["lag_txt"], 0);
$data[3] = $server["version"];
$data[4] = $server["modules"] . " ".__('of')." ". $server["modules_total"];
$data[5] = '<span style="white-space:nowrap;">' .
$server["lag_txt"] . '</span>';