Commit 34e80752 authored by Robert Griesemer's avatar Robert Griesemer

fix computation of sync delay

R=rsc
http://go/go-review/1013011
parent fd5fa4b3
......@@ -767,11 +767,11 @@ func main() {
go func() {
for {
dosync(nil, nil);
_, delay := syncDelay.get();
delay, _ := syncDelay.get();
if *verbose {
log.Stderrf("next sync in %dmin", delay);
log.Stderrf("next sync in %dmin", delay.(int));
}
time.Sleep(int64(delay)*60e9);
time.Sleep(int64(delay.(int))*60e9);
}
}();
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment