Be consistent on % for loss state.

This commit is contained in:
Ermal 2010-06-07 21:32:47 +00:00
parent 9ae7d46f5d
commit f4a17fcfe7

View File

@ -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);