Skip to content

Commit

Permalink
interval back to FIVE minutes
Browse files Browse the repository at this point in the history
  • Loading branch information
NBKelly committed Sep 11, 2024
1 parent ccc183f commit 33f92b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/clj/web/telemetry.clj
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
[taoensso.encore :as enc]
[taoensso.timbre :as timbre]))

(def log-stat-frequency (enc/ms :mins 15))
(def log-stat-frequency (enc/ms :mins 5))

(defn subscriber-time-metrics
"average time | oldest"
Expand Down Expand Up @@ -39,7 +39,7 @@
(if (:started lobby)
(let [state (:state lobby)
commands (or (:command-log @state) [])
recent (filter #(inst/is-after (inst/plus-seconds (:timestamp %) (* 15 60)) (inst/now))
recent (filter #(inst/is-after (inst/plus-seconds (:timestamp %) (* 5 60)) (inst/now))
commands)]
(map :command recent))
[]))
Expand Down

0 comments on commit 33f92b4

Please sign in to comment.