cmd/strelaypoolsrv: Prevent scraped metrics moving backwards (#5068)
This commit is contained in:
committed by
Jakob Borg
parent
5161f03f02
commit
93fdd1c012
@@ -496,7 +496,7 @@ func handleRelayTest(request request) {
|
||||
|
||||
mut.Lock()
|
||||
if stats != nil {
|
||||
updateMetrics(request.relay.uri.Host, stats, location)
|
||||
updateMetrics(request.relay.uri.Host, *stats, location)
|
||||
}
|
||||
request.relay.Stats = stats
|
||||
request.relay.StatsRetrieved = time.Now()
|
||||
|
||||
Reference in New Issue
Block a user