From a3c1faa75b00ad402b2d6747207b497a218579fc Mon Sep 17 00:00:00 2001 From: Dominic Reich Date: Wed, 9 Jun 2021 22:16:44 +0200 Subject: [PATCH] maybe this fixes the double-lined watchdog thing --- func.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/func.php b/func.php index 38069f2..8eace26 100644 --- a/func.php +++ b/func.php @@ -476,7 +476,8 @@ function getLastHeardYSF($logpath = MMDVMHOST_LOGPATH, $prefix = MMDVMHOST_PREFI } } elseif( strpos( $line, "network watchdog" )) { if( strpos( $oldline, "network watchdog" )) { - break; + $line = $oldline; + continue; } $time = date( "Y-m-d H:i:s", strtotime( substr( $oldline, 3, 23 )." UTC" )); $callsign = trim( substr( $oldline, 59, strpos( $oldline, "to" ) - 59 ));