Report transfer stats

This commit is contained in:
Jakob Borg
2013-12-23 12:12:44 -05:00
parent cd2040a7d2
commit 746d52930d
4 changed files with 81 additions and 23 deletions

View File

@@ -162,7 +162,7 @@ func main() {
// XXX: Should use some fsnotify mechanism.
go func() {
for {
time.Sleep(time.Duration(opts.ScanInterval) * time.Second)
time.Sleep(opts.ScanInterval)
updateLocalModel(m)
}
}()
@@ -291,7 +291,7 @@ func connect(myID string, addr string, nodeAddrs map[string][]string, m *Model,
}
}
time.Sleep(time.Duration(opts.ConnInterval) * time.Second)
time.Sleep(opts.ConnInterval)
}
}