fix double-line with "network watchdog on YSF"
This commit is contained in:
parent
1c094833ba
commit
6148c2e772
1 changed files with 3 additions and 0 deletions
3
func.php
3
func.php
|
@ -475,6 +475,9 @@ function getLastHeardYSF($logpath = MMDVMHOST_LOGPATH, $prefix = MMDVMHOST_PREFI
|
|||
continue;
|
||||
}
|
||||
} elseif( strpos( $line, "network watchdog" )) {
|
||||
if( strpos( $oldline, "network watchdog" )) {
|
||||
break;
|
||||
}
|
||||
$time = date( "Y-m-d H:i:s", strtotime( substr( $oldline, 3, 23 )." UTC" ));
|
||||
$callsign = trim( substr( $oldline, 59, strpos( $oldline, "to" ) - 59 ));
|
||||
if( strpos( $oldline, "DG-ID" )) {
|
||||
|
|
Loading…
Reference in a new issue