From: Austin Clements Date: Mon, 20 Jul 2015 19:48:53 +0000 (-0400) Subject: runtime: remove # from gctrace line X-Git-Tag: go1.5beta3~59 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=cc6ed285e58be9c3c16ab2f2bc34d61687dfc3ff;p=gostls13.git runtime: remove # from gctrace line Whenever someone pastes gctrace output into GitHub, it helpfully turns the GC cycle number into a link to some unrelated issue. Prevent this by removing the pound before the cycle number. The fact that this is a cycle number is probably more obvious at a glance than most of the other numbers. Change-Id: Ifa5fc7fe6c715eac50e639f25bc36c81a132ffea Reviewed-on: https://go-review.googlesource.com/12413 Reviewed-by: Brad Fitzpatrick Reviewed-by: Russ Cox --- diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index e0818d6441..8731dd8511 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -1136,7 +1136,7 @@ func gc(mode int) { var sbuf [24]byte printlock() - print("gc #", memstats.numgc, + print("gc ", memstats.numgc, " @", string(itoaDiv(sbuf[:], uint64(tSweepTerm-runtimeInitTime)/1e6, 3)), "s ", util, "%: ") prev := tSweepTerm