PLC check sequence numbers, corrected trip time to ms

This commit is contained in:
Mikayla Fischler
2022-04-23 21:10:25 -04:00
parent fa19af308d
commit 416255f41a
2 changed files with 15 additions and 3 deletions

View File

@@ -190,11 +190,11 @@ function new_session(id, for_reactor, in_queue, out_queue)
if self.last_rtt < 0 then
log._warning(log_header .. "PLC KEEP_ALIVE round trip time less than 0 (" .. trip_time .. ")")
elseif trip_time > 1 then
elseif trip_time > 1000 then
log._warning(log_header .. "PLC KEEP_ALIVE round trip time > 1s (" .. trip_time .. ")")
end
log._debug(log_header .. "RPLC RTT = ".. trip_time)
log._debug(log_header .. "RPLC RTT = ".. trip_time .. "ms")
else
log._debug(log_header .. "RPLC keep alive packet length mismatch")
end