mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Merge pull request #1378 from phil-davis/patch-10
This commit is contained in:
commit
8d5be861fb
@ -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;
|
||||
}
|
||||
|
||||
@ -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]) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user