diff options
author | Diego <diegolparra@gmail.com> | 2014-10-19 23:17:19 -0300 |
---|---|---|
committer | Diego <diegolparra@gmail.com> | 2014-10-19 23:17:19 -0300 |
commit | cabcd24b92d2ccbb82c24fbf658b2390d6e9cf89 (patch) | |
tree | 51b2d1efc211d85966274b40426367e1eee53015 /kamon-log-reporter/src/main/scala | |
parent | 62d02deec6f21b62ad3c878aad4c0927b7bac1d0 (diff) | |
download | Kamon-cabcd24b92d2ccbb82c24fbf658b2390d6e9cf89.tar.gz Kamon-cabcd24b92d2ccbb82c24fbf658b2390d6e9cf89.tar.bz2 Kamon-cabcd24b92d2ccbb82c24fbf658b2390d6e9cf89.zip |
= kamon-newrelic: minor refactor when merge metrics
Diffstat (limited to 'kamon-log-reporter/src/main/scala')
-rw-r--r-- | kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala b/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala index 05841c14..41ecb757 100644 --- a/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala +++ b/kamon-log-reporter/src/main/scala/kamon/logreporter/LogReporter.scala @@ -311,7 +311,7 @@ object LogReporterSubscriber { implicit class RichHistogramSnapshot(histogram: Histogram.Snapshot) { def average: Double = { - if(histogram.numberOfMeasurements == 0) 0D + if (histogram.numberOfMeasurements == 0) 0D else histogram.sum / histogram.numberOfMeasurements } } |