added logging
This commit is contained in:
parent
64de05523e
commit
a3c8c3ad59
1
main.go
1
main.go
@ -68,6 +68,7 @@ func main() {
|
|||||||
lastTick := time.Now()
|
lastTick := time.Now()
|
||||||
for now := range ticker.C {
|
for now := range ticker.C {
|
||||||
CurrentTraffic = CalculateSiteTraffic(api, sites, now.Sub(lastTick))
|
CurrentTraffic = CalculateSiteTraffic(api, sites, now.Sub(lastTick))
|
||||||
|
fmt.Println(CurrentTraffic)
|
||||||
lastTick = now
|
lastTick = now
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user