1
0
mirror of https://github.com/golang/go synced 2024-11-25 06:57:58 -07:00

godoc: use correct delay time (bug fix)

R=rsc
CC=golang-dev
https://golang.org/cl/2201041
This commit is contained in:
Robert Griesemer 2010-09-14 13:59:45 -07:00
parent b6f294def3
commit bce8f51b2b

View File

@ -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))
}