Optimize PeerEntry for memory efficiency

This commit is contained in:
Paul Dee 2023-11-23 19:35:13 +01:00
parent 71bbfd0d78
commit f0b85e0a8b

View file

@ -27,8 +27,8 @@ type PeerEntry struct {
RXBytes DataUnit `json:"bytes_recvd,omitempty"`
TXBytes DataUnit `json:"bytes_sent,omitempty"`
Uptime float64 `json:"uptime,omitempty"`
LastError string `json:"last_error,omitempty"`
LastErrorTime time.Duration `json:"last_error_time,omitempty"`
LastError string `json:"last_error,omitempty"`
}
func (a *AdminSocket) getPeersHandler(req *GetPeersRequest, res *GetPeersResponse) error {