diff options
author | Michael Munday <munday@ca.ibm.com> | 2016-04-14 14:07:59 -0400 |
---|---|---|
committer | Michael Munday <munday@ca.ibm.com> | 2016-04-14 18:35:09 +0000 |
commit | 24bd465bca145320bffd5b06e11da105226a1eae (patch) | |
tree | 045c39a306fde6182ce7821f8bad1f6f260b4579 /test/init1.go | |
parent | 02b8e6978a86c2f4f3a604e8b05014d127f4020a (diff) | |
download | go-24bd465bca145320bffd5b06e11da105226a1eae.tar.gz go-24bd465bca145320bffd5b06e11da105226a1eae.zip |
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/22087
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'test/init1.go')
-rw-r--r-- | test/init1.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/init1.go b/test/init1.go index 62dfb72bf9..a008e3e134 100644 --- a/test/init1.go +++ b/test/init1.go @@ -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") } } |