One more $if changed to $ifdescr and remove unneccessary line.

This commit is contained in:
gnhb 2010-06-06 11:15:06 +07:00
parent f78c597561
commit 692730bf32

View File

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