commit 0293674e38f5a3a389c92560412f9074307cb911
Author: Cecylia Bocovich <[email protected]>
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)
        }
 }



_______________________________________________
tor-commits mailing list
[email protected]
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits

Reply via email to