Skip to content

Commit

Permalink
Include 50th percentile in histogram and timer
Browse files Browse the repository at this point in the history
  • Loading branch information
malesch committed Jan 29, 2018
1 parent ca9c7b4 commit a566b7a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions metrics-clojure-core/src/metrics/histograms.clj
Expand Up @@ -72,9 +72,9 @@
* 100% were less than or equal to 500
If you don't pass a list of desired percentiles, the default will be
[0.75 0.95 0.99 0.999 1.0]."
[0.5 0.75 0.95 0.99 0.999 1.0]."
([^Histogram h]
(percentiles h [0.75 0.95 0.99 0.999 1.0]))
(percentiles h [0.5 0.75 0.95 0.99 0.999 1.0]))
([^Histogram h ps]
(get-percentiles h ps)))

Expand Down
2 changes: 1 addition & 1 deletion metrics-clojure-core/src/metrics/timers.clj
Expand Up @@ -90,7 +90,7 @@
(defn percentiles
"Returns timing percentiles seen by a timer, in nanoseconds"
([^Timer t]
(percentiles t [0.75 0.95 0.99 0.999 1.0]))
(percentiles t [0.5 0.75 0.95 0.99 0.999 1.0]))
([^Timer t ps]
(get-percentiles t ps)))

Expand Down

0 comments on commit a566b7a

Please sign in to comment.