Skip to content

Commit

Permalink
Format functions calls counters with commas
Browse files Browse the repository at this point in the history
Fix #151
  • Loading branch information
jpmonettas committed Feb 28, 2024
1 parent 46af26a commit 0d98c49
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src-dbg/flow_storm/debugger/ui/flows/functions.clj
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
[flow-storm.debugger.runtime-api :as runtime-api :refer [rt-api]]
[flow-storm.debugger.ui.flows.code :as flows-code]
[flow-storm.debugger.ui.value-inspector :as value-inspector]
[clojure.pprint :refer [cl-format]]
[clojure.string :as str])
(:import [javafx.scene.layout Priority HBox VBox]
[javafx.geometry Orientation Insets Pos]
Expand All @@ -30,9 +31,9 @@

(defn- functions-cell-factory [flow-id thread-id _ {:keys [cell-type] :as cell-info}]
(case cell-type
:calls (doto (h-box [(button :label (str (:cnt cell-info))
:classes ["btn-sm"]
:on-click (fn [] (show-function-calls flow-id thread-id cell-info)))])
:calls (doto (h-box [(button :label (cl-format nil "~:d" (:cnt cell-info))
:classes ["btn-sm"]
:on-click (fn [] (show-function-calls flow-id thread-id cell-info)))])
(.setAlignment Pos/CENTER_RIGHT))

:function (let [{:keys [form-def-kind fn-name fn-ns dispatch-val]} cell-info
Expand Down

0 comments on commit 0d98c49

Please sign in to comment.