Rename latency_ms to latency in getPeers response since it isn't even milliseconds anymore

This commit is contained in:
Neil Alexander 2024-12-18 22:21:23 +00:00
parent 22bc9c44e2
commit 1fbcf3b3c2
No known key found for this signature in database
GPG Key ID: A02A2019A2BB0944

View File

@ -31,7 +31,7 @@ type PeerEntry struct {
RXRate DataUnit `json:"rate_recvd,omitempty"` RXRate DataUnit `json:"rate_recvd,omitempty"`
TXRate DataUnit `json:"rate_sent,omitempty"` TXRate DataUnit `json:"rate_sent,omitempty"`
Uptime float64 `json:"uptime,omitempty"` Uptime float64 `json:"uptime,omitempty"`
Latency time.Duration `json:"latency_ms,omitempty"` Latency time.Duration `json:"latency,omitempty"`
LastErrorTime time.Duration `json:"last_error_time,omitempty"` LastErrorTime time.Duration `json:"last_error_time,omitempty"`
LastError string `json:"last_error,omitempty"` LastError string `json:"last_error,omitempty"`
} }