]> Cypherpunks repositories - gostls13.git/commitdiff
test: use correct value in error message in init1.go
authorMichael Munday <munday@ca.ibm.com>
Thu, 14 Apr 2016 18:07:59 +0000 (14:07 -0400)
committerMichael Munday <munday@ca.ibm.com>
Thu, 14 Apr 2016 18:35:09 +0000 (18:35 +0000)
Print numGC followed by numGC1, rather than printing numGC twice.

Change-Id: I8e7144b6a11d4ae9be0d82d88b86fed04b906e2f
Reviewed-on: https://go-review.googlesource.com/22087
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
test/init1.go

index 62dfb72bf9a966e90333c5669e813d06f5231123..a008e3e134b0e7ee500732d12e00b5e83b8ca61c 100644 (file)
@@ -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")
        }
 }