From 692730bf32b6658bee626c2bb58ffce54b7bcb14 Mon Sep 17 00:00:00 2001 From: gnhb Date: Sun, 6 Jun 2010 11:15:06 +0700 Subject: [PATCH] One more $if changed to $ifdescr and remove unneccessary line. --- etc/inc/pfsense-utils.inc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index 466101be66..03d4968f6e 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -1263,8 +1263,7 @@ function get_interface_info($ifdescr) { if (empty($dev)) break; if (file_exists("/dev/{$dev}")) { - if (file_exists("{$g['varrun_path']}/ppp_{$if}.pid")) { - $ifinfo['pppinfo'] = "{$ifinfo['if']}"; + if (file_exists("{$g['varrun_path']}/ppp_{$ifdescr}.pid")) { $sec = trim(`/usr/local/sbin/ppp-uptime.sh {$ifinfo['if']}`); $ifinfo['ppp_uptime'] = convert_seconds_to_hms($sec); }