mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Be consistent on % for loss state.
This commit is contained in:
parent
9ae7d46f5d
commit
f4a17fcfe7
@ -257,7 +257,7 @@ function return_gateways_status() {
|
||||
$status[$target]['name'] = $info[1];
|
||||
$status[$target]['lastcheck'] = $info[4] ? date('r', $info[4]) : date('r');
|
||||
$status[$target]['delay'] = empty($info[5]) ? 0 : $info[5];
|
||||
$status[$target]['loss'] = empty($info[6]) ? 0.0 : $info[6];
|
||||
$status[$target]['loss'] = empty($info[6]) ? "0.0%" : $info[6] . "%";
|
||||
$status[$target]['status'] = trim($info[7]);
|
||||
}
|
||||
return($status);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user