                                                      0)
                                    max-offset (if msg-store
                                                 (-> msg-store (.getMaxOffset))
-                                                0) 
+                                                0)
                                    min-offset (if msg-store
                                                 (-> msg-store (.getMinOffset))
                                                 0)

                               owner (ZkUtils/readDataMaybeNull zc owner-znode)]
                           (when (or msg-store (seq owner))
                             (let [consumer-offset (if (seq offset-str)
                                                     (Integer/valueOf
                                                      (if (.contains offset-str "-")
                                                        (let [idx (.lastIndexOf offset-str "-")]
                                                          (.substring offset-str (inc idx)))

(defn- dashboard [req]
  (render-tpl "dashboard.vm"
              :instance (u/stringfy-map-keys (instance))
              :version (u/stringfy-map-keys (version))
              :jvm (u/stringfy-map-keys (jvm))
              :system (u/stringfy-map-keys (system))))

