mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-13 20:11:19 -04:00
fix: up/down traffic stats being mixed up
This commit is contained in:
parent
990fcb4127
commit
5cc849e186
2 changed files with 2 additions and 2 deletions
|
@ -80,7 +80,7 @@ func (b *bytesSyncLogger) ThroughputSummary() string {
|
|||
outbound, outUnit := formatTraffic(outbound)
|
||||
|
||||
t := time.Now()
|
||||
return fmt.Sprintf("Traffic throughput (up|down): %d %s|%d %s -- (%d OnMessages, %d Sends, over %d seconds)", inbound, inUnit, outbound, outUnit, b.outEvents, b.inEvents, int(t.Sub(b.start).Seconds()))
|
||||
return fmt.Sprintf("Traffic throughput (down|up): %d %s|%d %s -- (%d OnMessages, %d Sends, over %d seconds)", inbound, inUnit, outbound, outUnit, b.outEvents, b.inEvents, int(t.Sub(b.start).Seconds()))
|
||||
}
|
||||
|
||||
func (b *bytesSyncLogger) GetStat() (in int64, out int64) { return b.inbound, b.outbound }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue