Fixed loop
Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
parent
2ffa757a67
commit
de9d98c040
6
main.go
6
main.go
@ -26,8 +26,10 @@ func main() {
|
|||||||
flag.IntVar(&port, "port", 9091, "The port to listen on")
|
flag.IntVar(&port, "port", 9091, "The port to listen on")
|
||||||
|
|
||||||
go (func() {
|
go (func() {
|
||||||
checkSpeed()
|
for {
|
||||||
time.Sleep(time.Minute * time.Duration(interval))
|
checkSpeed()
|
||||||
|
time.Sleep(time.Minute * time.Duration(interval))
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
|
|
||||||
collector := newSpeedCollector()
|
collector := newSpeedCollector()
|
||||||
|
Loading…
Reference in New Issue
Block a user