diff --git a/openapi.yaml b/openapi.yaml index db7b77cd6234661c9d3ac5bc9680cf1c408a2ace..9290b508f6eba9d66044e91efe11845b30bf4469 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.0.3 info: - version: "3.0.0" + version: "3.0.1" title: CF Online description: CF Online license: diff --git a/tools/online-counter/online.go b/tools/online-counter/online.go index 41d27a80300be865e5193505dfeb00fb1e0ece2e..7593d6be3c7c1a92b9bd77ec62f85568b1e55792 100644 --- a/tools/online-counter/online.go +++ b/tools/online-counter/online.go @@ -74,13 +74,11 @@ func main() { for event, count := range online { elapsed := now.Sub(lastPub[event]).Round(time.Second).Seconds() + if elapsed < float64(count.All)/tarpitFactor { break } - fmt.Println(elapsed) - - // tady muze byt next lastPub[event] = now topic := fmt.Sprintf("online:%s", event)