correction in detecting link-state of YSF

This commit is contained in:
dg9vh 2016-09-30 20:04:26 +00:00
parent 6e57175b91
commit 0853d3fd9c
2 changed files with 3 additions and 3 deletions

View file

@ -447,7 +447,7 @@ function getActualLink($logLines, $mode) {
// 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901 // 01234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901
// M: 2016-09-25 16:08:05.811 Connect to 62829 has been requested by DG9VH // M: 2016-09-25 16:08:05.811 Connect to 62829 has been requested by DG9VH
foreach($logLines as $logLine) { foreach($logLines as $logLine) {
$to = ""; $to = -1;
if (strpos($logLine,"Starting YSFGateway")) { if (strpos($logLine,"Starting YSFGateway")) {
$to = -1; $to = -1;
} }
@ -461,7 +461,7 @@ function getActualLink($logLines, $mode) {
return $to; return $to;
} }
} }
return "not linked"; return -1;
break; break;
} }
return "something went wrong!"; return "something went wrong!";

View file

@ -1,3 +1,3 @@
<?php <?php
define("VERSION", "20160928-1"); define("VERSION", "20160930-1");
?> ?>