Skip to content

Commit 60095d2

Browse files
Merge pull request #129 from malesch/feature/50th-percentile
Include 50th percentile in histogram and timer
2 parents 68318ee + a566b7a commit 60095d2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,9 +72,9 @@
7272
* 100% were less than or equal to 500
7373
7474
If you don't pass a list of desired percentiles, the default will be
75-
[0.75 0.95 0.99 0.999 1.0]."
75+
[0.5 0.75 0.95 0.99 0.999 1.0]."
7676
([^Histogram h]
77-
(percentiles h [0.75 0.95 0.99 0.999 1.0]))
77+
(percentiles h [0.5 0.75 0.95 0.99 0.999 1.0]))
7878
([^Histogram h ps]
7979
(get-percentiles h ps)))
8080

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
(defn percentiles
9292
"Returns timing percentiles seen by a timer, in nanoseconds"
9393
([^Timer t]
94-
(percentiles t [0.75 0.95 0.99 0.999 1.0]))
94+
(percentiles t [0.5 0.75 0.95 0.99 0.999 1.0]))
9595
([^Timer t ps]
9696
(get-percentiles t ps)))
9797

0 commit comments

Comments
 (0)