mirror of
https://gitlab.torproject.org/tpo/anti-censorship/pluggable-transports/snowflake.git
synced 2025-10-14 14:11:23 -04:00
Use %.f not %.g to format stats interval.
fmt.Sprintf("%.g", 86400.4) → "9e+04" fmt.Sprintf("%.f", 86400.4) → "86400"
This commit is contained in:
parent
085f253757
commit
9ab8ea3df4
1 changed files with 1 additions and 1 deletions
|
@ -32,7 +32,7 @@ func statsThread() {
|
|||
numConnections += 1
|
||||
case <-deadline:
|
||||
now := time.Now()
|
||||
log.Printf("in the past %.g s, %d/%d connections had client_ip",
|
||||
log.Printf("in the past %.f s, %d/%d connections had client_ip",
|
||||
(now.Sub(prevTime)).Seconds(),
|
||||
numClientIP, numConnections)
|
||||
numClientIP = 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue