diff --git a/99-experiments/body-drain/main.go b/99-experiments/body-drain/main.go index faba84f..d4fd088 100644 --- a/99-experiments/body-drain/main.go +++ b/99-experiments/body-drain/main.go @@ -143,7 +143,9 @@ func serveForever(addr string) { s.close() return case <-tick.C: - fmt.Printf("%s new=%d active=%d goroutines=%d\n", + // accepted_total only ever grows (every conn ever accepted); + // active is what's open right now. + fmt.Printf("%s accepted_total=%d active=%d goroutines=%d\n", time.Now().Format("15:04:05"), s.newConns.Load(), s.activeConns.Load(), runtime.NumGoroutine()) } }