fix: mailserver response time (#2486)

RTTMs were being set nil when the response time was less than 1ms
This commit is contained in:
Richard Ramos 2022-01-13 10:30:00 -04:00 committed by GitHub
parent ee41e30881
commit fd3bcbf8a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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