diff --git a/func.php b/func.php index 0e4d42d..38069f2 100644 --- a/func.php +++ b/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" )) {