fix double-line with "network watchdog on YSF"

This commit is contained in:
Dominic Reich 2021-06-09 21:34:36 +02:00
parent 1c094833ba
commit 6148c2e772

View file

@ -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" )) {