mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Zero out counts for next time step
This commit is contained in:
parent
d57cd07599
commit
0293674e38
1 changed files with 3 additions and 0 deletions
|
@ -117,6 +117,9 @@ func (m *Metrics) logMetrics() {
|
||||||
m.logger.Println("client-snowflake-match-count ", m.clientProxyMatchCount)
|
m.logger.Println("client-snowflake-match-count ", m.clientProxyMatchCount)
|
||||||
|
|
||||||
//restore all metrics to original values
|
//restore all metrics to original values
|
||||||
|
m.proxyIdleCount = 0
|
||||||
|
m.clientDeniedCount = 0
|
||||||
|
m.clientProxyMatchCount = 0
|
||||||
m.countryStats.counts = make(map[string]int)
|
m.countryStats.counts = make(map[string]int)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue