Commit 24bd465b authored by Michael Munday's avatar Michael Munday

test: use correct value in error message in init1.go

Print numGC followed by numGC1, rather than printing numGC twice.

Change-Id: I8e7144b6a11d4ae9be0d82d88b86fed04b906e2f
Reviewed-on: https://go-review.googlesource.com/22087Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 02b8e697
......@@ -40,7 +40,7 @@ func init() {
sys1, numGC1 := memstats.Sys, memstats.NumGC
if sys1-sys >= N*MB || numGC1 == numGC {
println("allocated 1000 chunks of", MB, "and used ", sys1-sys, "memory")
println("numGC went", numGC, "to", numGC)
println("numGC went", numGC, "to", numGC1)
panic("init1")
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment