One more $if must change to $ifdescr

This commit is contained in:
gnhb 2010-06-06 10:40:41 +07:00
parent ba7b2b86cc
commit a045b3270f

View File

@ -1264,7 +1264,7 @@ function get_interface_info($ifdescr) {
break;
if (file_exists("/dev/{$dev}")) {
if (file_exists("{$g['varrun_path']}/ppp_{$if}.pid")) {
$ifinfo['pppinfo'] = "{$ifinfo['if']}";
$ifinfo['pppinfo'] = $ifinfo['ifdescr'];
$sec = trim(`/usr/local/sbin/ppp-uptime.sh {$ifinfo['if']}`);
$ifinfo['ppp_uptime'] = convert_seconds_to_hms($sec);
}