From: Russ Cox Date: Mon, 29 Mar 2010 20:30:32 +0000 (-0700) Subject: fix build X-Git-Tag: weekly.2010-03-30~26 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=bd1690ce5ef2cf9e636ff51fe91532fcb475f288;p=gostls13.git fix build R=gri CC=golang-dev https://golang.org/cl/837041 --- diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index bde1b4868b..8490137eef 100644 --- a/src/cmd/godoc/godoc.go +++ b/src/cmd/godoc/godoc.go @@ -1383,9 +1383,9 @@ func indexer() { nwords, nspots := index.Size() log.Stderrf("index updated (%gs, %d unique words, %d spots)", secs, nwords, nspots) } - log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.InusePages<<12) + log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.Sys) runtime.GC() - log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.InusePages<<12) + log.Stderrf("bytes=%d footprint=%d\n", runtime.MemStats.HeapAlloc, runtime.MemStats.Sys) } time.Sleep(1 * 60e9) // try once a minute }