mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
Fixed up/downstream metrics
This commit is contained in:
parent
df22114fce
commit
99eb794a20
1 changed files with 1 additions and 1 deletions
|
@ -38,7 +38,7 @@ func (p *logEventLogger) OnNewSnowflakeEvent(e event.SnowflakeEvent) {
|
||||||
|
|
||||||
func (p *logEventLogger) logTick() error {
|
func (p *logEventLogger) logTick() error {
|
||||||
inbound, inboundUnit := formatTraffic(p.inboundSum)
|
inbound, inboundUnit := formatTraffic(p.inboundSum)
|
||||||
outbound, outboundUnit := formatTraffic(p.inboundSum)
|
outbound, outboundUnit := formatTraffic(p.outboundSum)
|
||||||
p.logger.Printf("In the last %v, there were %v connections. Traffic Relayed ↑ %v %v, ↓ %v %v.\n",
|
p.logger.Printf("In the last %v, there were %v connections. Traffic Relayed ↑ %v %v, ↓ %v %v.\n",
|
||||||
p.logPeriod.String(), p.connectionCount, inbound, inboundUnit, outbound, outboundUnit)
|
p.logPeriod.String(), p.connectionCount, inbound, inboundUnit, outbound, outboundUnit)
|
||||||
p.outboundSum = 0
|
p.outboundSum = 0
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue