Skip to content

Commit

Permalink
fix cmd-* missing in stats
Browse files Browse the repository at this point in the history
  • Loading branch information
sunng87 committed Sep 19, 2011
1 parent b72aace commit dcff325
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/clojalk/core.clj
Original file line number Diff line number Diff line change
Expand Up @@ -484,9 +484,10 @@
waiting-sessions (filter #(= :waiting (:state @%)) worker-sessions)
producer-sessions (filter #(= :producer (:type @%)) all-sessions)
all-tubes (vals @tubes)
commands-stats @commands]
commands-stats @commands
commands-stats-keys (keys commands-stats)]
; (dbg commands-stats)
(merge (zipmap (keys commands-stats) (map deref (vals commands-stats)))
(merge (zipmap commands-stats-keys (map #(deref (commands-stats %)) commands-stats-keys))
{:job-timeouts @job-timeouts
:current-tubes (count all-tubes)
:current-connections (count all-sessions)
Expand All @@ -499,7 +500,7 @@
:current-jobs-reserved (count reserved-jobs)
:current-jobs-delayed (count delayed-jobs)
:current-jobs-buried (count buried-jobs)})))

;; ## Schedule tasks for time based work
;;

Expand Down

0 comments on commit dcff325

Please sign in to comment.