                   (into []))]
     (chart/pie
       data
-      (str (count desired-tasks) " " (inflect/pluralize-noun (count desired-tasks) "replica"))
+      (str (count tasks) " " (inflect/pluralize-noun (count tasks) "replica"))
       "Swarmpit-service-replicas-graph"
       "replicas-pie"
       {:formatter (fn [value name props]

    (html [:span image])))

(rum/defc form-replicas < rum/static [tasks]
  (let [desired-tasks (filter #(= "running" (:desiredState %)) tasks)
        data (->> desired-tasks
                  (map (fn [task]
                         (if (= "running" (:state task))
                           {:name  (:taskName task)


(defn- form-command [command]
  (when command
    (html [:pre {:key   "command"
                 :style {:fontSize "0.9em"
                         :margin   0}}
           (let [merged (str/join " " command)]
             (if (< 100 (count merged))
