added logging

This commit is contained in:
Tordarus 2025-02-02 02:35:05 +01:00
parent 64de05523e
commit a3c8c3ad59

View File

@ -68,6 +68,7 @@ func main() {
lastTick := time.Now()
for now := range ticker.C {
CurrentTraffic = CalculateSiteTraffic(api, sites, now.Sub(lastTick))
fmt.Println(CurrentTraffic)
lastTick = now
}
}