Source

metrics-clojure / metrics-clojure-core / src / metrics / gauges.clj

Diff from to

File metrics-clojure-core/src/metrics/gauges.clj

     (if (and (empty? bs)
              (symbol? b)
              (fn? (eval b)))
-      `(def ~s (gauge-fn ~title ~b))
-      `(def ~s (gauge ~title ~@body)))))
+      `(def ~s (gauge-fn '~title ~b))
+      `(def ~s (gauge '~title ~@body)))))
 
 
 ; Read ------------------------------------------------------------------------