supervisor code cleanup, adjusted prints

This commit is contained in:
Mikayla Fischler
2022-04-28 22:41:08 -04:00
parent 67ec8fbd91
commit d688f9a1c6
4 changed files with 10 additions and 6 deletions

View File

@@ -181,10 +181,8 @@ function new_session(id, for_reactor, in_queue, out_queue)
local srv_now = util.time()
self.last_rtt = srv_now - srv_start
if self.last_rtt < 0 then
log._warning(log_header .. "PLC KEEP_ALIVE round trip time less than 0 (" .. self.last_rtt .. ")")
elseif self.last_rtt > 1200 then
log._warning(log_header .. "PLC KEEP_ALIVE round trip time > 1.2s (" .. self.last_rtt .. ")")
if self.last_rtt > 500 then
log._warning(log_header .. "PLC KEEP_ALIVE round trip time > 500ms (" .. self.last_rtt .. ")")
end
-- log._debug(log_header .. "RPLC RTT = ".. self.last_rtt .. "ms")