From bce8f51b2b4ddfc65c686fd950229615e4d542de Mon Sep 17 00:00:00 2001 From: Robert Griesemer Date: Tue, 14 Sep 2010 13:59:45 -0700 Subject: [PATCH] godoc: use correct delay time (bug fix) R=rsc CC=golang-dev https://golang.org/cl/2201041 --- src/cmd/godoc/godoc.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/cmd/godoc/godoc.go b/src/cmd/godoc/godoc.go index 4d084a6bdb8..e174c4e5aee 100644 --- a/src/cmd/godoc/godoc.go +++ b/src/cmd/godoc/godoc.go @@ -135,7 +135,7 @@ func getPathFilter() func(string) bool { } -// readDirList reads a file containing newline-separated list +// readDirList reads a file containing a newline-separated list // of directory paths and returns the list of paths. func readDirList(filename string) ([]string, os.Error) { contents, err := ioutil.ReadFile(filename) @@ -205,8 +205,11 @@ func initDirTrees() { filterDelay.set(*filterMin) // initial filter update delay go func() { for { + if *verbose { + log.Stderrf("start update of %s", *filter) + } updateFilterFile() - delay, _ := syncDelay.get() + delay, _ := filterDelay.get() if *verbose { log.Stderrf("next filter update in %dmin", delay.(int)) }