Merge pull request #1378 from phil-davis/patch-10

This commit is contained in:
Renato Botelho 2014-12-11 07:39:13 -02:00
commit 8d5be861fb
2 changed files with 3 additions and 3 deletions

View File

@ -42,7 +42,7 @@ function get_gatewaystats() {
$isfirst = false;
$data .= $gw['name'] . ",";
if ($gateways_status[$gname]) {
$data .= lookup_gateway_ip_by_name($gname) . ",";
$data .= "<b>" . lookup_gateway_ip_by_name($gname) . "</b>,";
$gws = $gateways_status[$gname];
switch(strtolower($gws['status'])) {
case "none":
@ -73,7 +73,7 @@ function get_gatewaystats() {
$bgcolor = "#ADD8E6"; // lightblue
}
$data .= ($online == "Pending") ? "{$online},{$online}," : "{$gws['delay']},{$gws['loss']},";
$data .= "{$online}/{$bgcolor}";
$data .= "{$online}^{$bgcolor}";
}
return $data;
}

View File

@ -111,7 +111,7 @@ function updateGatewayStats(x){
if (widgetActive("gateways")){
gateways_split = x.split(",");
for (var y=0; y<gateways_split.length; y++){
gateways_field_split = gateways_split[y].split("/");
gateways_field_split = gateways_split[y].split("^");
if(jQuery('#gateway' + (y + 1))) {
jQuery('#gateway' + (y + 1)).html(gateways_field_split[0]);
if(gateways_field_split[1]) {