fix: mailserver response time (#2486)
RTTMs were being set nil when the response time was less than 1ms
This commit is contained in:
parent
ee41e30881
commit
fd3bcbf8a1
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue