[tor-commits] [snowflake/master] Zero out counts for next time step

cohosh at torproject.org cohosh at torproject.org
Fri Jun 28 21:32:20 UTC 2019


commit 0293674e38f5a3a389c92560412f9074307cb911
Author: Cecylia Bocovich <cohosh at torproject.org>
Date:   Tue Jun 11 14:19:14 2019 -0400

    Zero out counts for next time step
---
 broker/metrics.go | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/broker/metrics.go b/broker/metrics.go
index 38cdc10..4159f70 100644
--- a/broker/metrics.go
+++ b/broker/metrics.go
@@ -117,6 +117,9 @@ func (m *Metrics) logMetrics() {
 		m.logger.Println("client-snowflake-match-count ", m.clientProxyMatchCount)
 
 		//restore all metrics to original values
+		m.proxyIdleCount = 0
+		m.clientDeniedCount = 0
+		m.clientProxyMatchCount = 0
 		m.countryStats.counts = make(map[string]int)
 	}
 }





More information about the tor-commits mailing list