Github user revans2 commented on a diff in the pull request: https://github.com/apache/storm/pull/753#discussion_r42673357 --- Diff: storm-core/src/clj/backtype/storm/stats.clj --- @@ -277,15 +277,34 @@ (value-stats stats SPOUT-FIELDS) {:type :spout})) +(defn values-divided-by [pairs t] + (let [update-values (fn [m f & args] + (into {} (for [[k v] m] [k (apply f v args)])))] + (update-values pairs / (double t)))) --- End diff -- I would prefer to see update-values be a regular function instead of defined each time value-divide-by is called.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---