mirror of
https://github.com/pfsense/pfsense.git
synced 2025-10-26 11:38:35 +00:00
Ticket #447. Handle multiple instances propperly.
This commit is contained in:
parent
f11237659b
commit
877fb374ab
@ -1321,7 +1321,8 @@ function get_interface_info($ifdescr) {
|
||||
if (file_exists("/dev/{$dev}")) {
|
||||
$ifinfo['ppplink'] = $dev;
|
||||
if (file_exists("{$g['varrun_path']}/mpd_{$if}.pid") && file_exists("{$g['varetc_path']}/mpd_{$if}.query")) {
|
||||
$sec = trim(`/usr/bin/nc localhost 5005 < {$g['varetc_path']}/mpd_{$if}.query | grep 'Session time' | cut -f7 -d ' '`);
|
||||
$pppid = substr($ifinfo['if'], 3);
|
||||
$sec = trim(`/usr/bin/nc 127.0.0.1 500{$pppid} < {$g['varetc_path']}/mpd_{$if}.query | grep 'Session time' | cut -f7 -d ' '`);
|
||||
$ifinfo['ppp_uptime'] = convert_seconds_to_hms($sec);
|
||||
}
|
||||
$ifinfo['missing_device'] = 0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user