fix double-line with "network watchdog on YSF"

master
Dominic Reich 3 years ago
parent 1c094833ba
commit 6148c2e772

@ -475,6 +475,9 @@ function getLastHeardYSF($logpath = MMDVMHOST_LOGPATH, $prefix = MMDVMHOST_PREFI
continue; continue;
} }
} elseif( strpos( $line, "network watchdog" )) { } 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" )); $time = date( "Y-m-d H:i:s", strtotime( substr( $oldline, 3, 23 )." UTC" ));
$callsign = trim( substr( $oldline, 59, strpos( $oldline, "to" ) - 59 )); $callsign = trim( substr( $oldline, 59, strpos( $oldline, "to" ) - 59 ));
if( strpos( $oldline, "DG-ID" )) { if( strpos( $oldline, "DG-ID" )) {

Loading…
Cancel
Save