maybe this fixes the double-lined watchdog thing

master
Dominic Reich 4 years ago
parent c980268fa4
commit a3c1faa75b

@ -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 ));

Loading…
Cancel
Save