From f4a17fcfe7b77fec9b0f8752e2a5c3430e8e6dbd Mon Sep 17 00:00:00 2001 From: Ermal Date: Mon, 7 Jun 2010 21:32:47 +0000 Subject: [PATCH] Be consistent on % for loss state. --- etc/inc/gwlb.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/inc/gwlb.inc b/etc/inc/gwlb.inc index 54ab350491..cbb9055575 100644 --- a/etc/inc/gwlb.inc +++ b/etc/inc/gwlb.inc @@ -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);