Merge pull request #74 from phl0/dev
Handle log lines for lost RF transmissions correctly
This commit is contained in:
commit
cef1f02eff
1 changed files with 1 additions and 1 deletions
|
@ -240,7 +240,7 @@ function getHeardList($logLines, $onlyLast) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired") || strpos($logLine,"ended RF data") || strpos($logLine,"ended network") || strpos($logLine,"RF transmission lost")) {
|
if(strpos($logLine,"end of") || strpos($logLine,"watchdog has expired") || strpos($logLine,"ended RF data") || strpos($logLine,"ended network") || strpos($logLine,"transmission lost")) {
|
||||||
$lineTokens = explode(", ",$logLine);
|
$lineTokens = explode(", ",$logLine);
|
||||||
if (array_key_exists(2,$lineTokens)) {
|
if (array_key_exists(2,$lineTokens)) {
|
||||||
$duration = strtok($lineTokens[2], " ");
|
$duration = strtok($lineTokens[2], " ");
|
||||||
|
|
Loading…
Reference in a new issue