Skip to content

Commit 3ee061f

Browse files
committed
Fix lint error
Signed-off-by: Greg Haskins <greg@manetu.com>
1 parent 6e5eaaf commit 3ee061f

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/manetu/sparql_loadtest/core.clj

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,14 @@
118118
(let [failures (get-in summaries [0 :count])]
119119
{:failures failures :summaries summaries})))))
120120

121+
(defn ->count
122+
[nr count]
123+
(str (int count) " (" (* (/ count nr) 100) "%)"))
124+
121125
(defn render
122126
[{:keys [nr] :as ctx} {:keys [total-duration summaries] :as stats}]
123-
(println (table [:description :count :min :mean :stddev :p50 :p90 :p99 :max :rate] (map #(update % :count (fn [count] (str (int count) " (" (* (/ count nr) 100) "%)"))) summaries)))
127+
(println (table [:description :count :min :mean :stddev :p50 :p90 :p99 :max :rate]
128+
(map #(update % :count (partial ->count nr)) summaries)))
124129
(println "Total Duration:" (str total-duration "msecs")))
125130

126131
(defn process

0 commit comments

Comments
 (0)