From 6148c2e7721224bfeb3998116bae63a1f3f1d80a Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Wed, 9 Jun 2021 21:34:36 +0200 Subject: [PATCH] fix double-line with "network watchdog on YSF" --- func.php | 3 +++ 1 file changed, 3 insertions(+) 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" )) {