From fd3bcbf8a10ab7fc6c210f058f2f98e5b0070174 Mon Sep 17 00:00:00 2001 From: Richard Ramos Date: Thu, 13 Jan 2022 10:30:00 -0400 Subject: [PATCH] fix: mailserver response time (#2486) RTTMs were being set nil when the response time was less than 1ms --- services/mailservers/tcp_ping.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/mailservers/tcp_ping.go b/services/mailservers/tcp_ping.go index e7e773edc..fab00d540 100644 --- a/services/mailservers/tcp_ping.go +++ b/services/mailservers/tcp_ping.go @@ -31,7 +31,7 @@ func (pr *PingResult) Update(rttMs int, err error) { errStr := err.Error() pr.Err = &errStr } - if rttMs > 0 { + if rttMs >= 0 { pr.RTTMs = &rttMs } else { pr.RTTMs = nil