summaryrefslogtreecommitdiffstats
path: root/usr
diff options
context:
space:
mode:
authorjim-p <jimp@pfsense.org>2013-07-02 14:26:12 -0400
committerjim-p <jimp@pfsense.org>2013-07-02 14:27:37 -0400
commit6c2bb4e62b7c55396d35559adf7c644a079e352b (patch)
treeb3536444b80dd9e9dcccf0134bcd273a16d89f5d /usr
parent98d5e2346122ee9c12422a6a3efba3c5ed8bd40c (diff)
downloadpfsense-6c2bb4e62b7c55396d35559adf7c644a079e352b.zip
pfsense-6c2bb4e62b7c55396d35559adf7c644a079e352b.tar.gz
Add the interface's descr after the pool name.
Diffstat (limited to 'usr')
-rwxr-xr-xusr/local/www/status_dhcp_leases.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/local/www/status_dhcp_leases.php b/usr/local/www/status_dhcp_leases.php
index ab0e45a..6c2dc69 100755
--- a/usr/local/www/status_dhcp_leases.php
+++ b/usr/local/www/status_dhcp_leases.php
@@ -170,7 +170,8 @@ foreach($leases_content as $lease) {
while($f < $fcount) {
switch($data[$f]) {
case "failover":
- $pools[$p]['name'] = $data[$f+2];
+ $pools[$p]['name'] = trim($data[$f+2], '"');
+ $pools[$p]['name'] = "{$pools[$p]['name']} (" . convert_friendly_interface_to_friendly_descr(substr($pools[$p]['name'], 5)) . ")";
$pools[$p]['mystate'] = $data[$f+7];
$pools[$p]['peerstate'] = $data[$f+14];
$pools[$p]['mydate'] = $data[$f+10];
OpenPOWER on IntegriCloud