fix: update top results per peer

This commit is contained in:
Jon Lundy 2023-03-28 08:23:53 -06:00
parent fcc5d08aa7
commit 6ee995298b
Signed by untrusted user who does not match committer: xuu
GPG Key ID: C63E6D61F3035024

View File

@ -656,6 +656,9 @@ func fnOrderByPeer(rq *Request) listPeer {
v := peers[i] v := peers[i]
sort.Sort(v.Results) sort.Sort(v.Results)
v.Name = v.Results[0].Name
v.Country = v.Results[0].Country
v.Latency = v.Results[0].Latency v.Latency = v.Results[0].Latency
v.Jitter = v.Results[0].Jitter v.Jitter = v.Results[0].Jitter