2
main.go
2
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() {
|
||||||
|
for {
|
||||||
checkSpeed()
|
checkSpeed()
|
||||||
time.Sleep(time.Minute * time.Duration(interval))
|
time.Sleep(time.Minute * time.Duration(interval))
|
||||||
|
}
|
||||||
})()
|
})()
|
||||||
|
|
||||||
collector := newSpeedCollector()
|
collector := newSpeedCollector()
|
||||||
|
Reference in New Issue
Block a user