]> Cypherpunks repositories - gostls13.git/commitdiff
fix build
authorRuss Cox <rsc@golang.org>
Mon, 29 Mar 2010 20:30:32 +0000 (13:30 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 29 Mar 2010 20:30:32 +0000 (13:30 -0700)
R=gri
CC=golang-dev
https://golang.org/cl/837041

src/cmd/godoc/godoc.go

index bde1b4868b4ac8d4a71ea79968a0506e135d35a6..8490137eefad9fd2cb38fa5a420750876faed230 100644 (file)
@@ -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
        }