diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-05 17:02:18 +0200 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-04-05 19:59:04 +0200 |
commit | 0746f0002b2e1d563d837f954b367ae063546ca1 (patch) | |
tree | ed7f0a74ed89dae008f79e479c2d788c92f942f9 /kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala | |
parent | 5456e7ca8f215b2a3a5bdbd3177a6ae61f268eef (diff) | |
download | Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.gz Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.tar.bz2 Kamon-0746f0002b2e1d563d837f954b367ae063546ca1.zip |
= core: minor cleanup of metric keys and units of measurements.
Diffstat (limited to 'kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala')
-rw-r--r-- | kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala b/kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala index 20204b79..6fb645f5 100644 --- a/kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala +++ b/kamon-newrelic/src/main/scala/kamon/newrelic/Metric.scala @@ -18,9 +18,9 @@ case class MetricData(callCount: Long, total: Double, totalExclusive: Double, mi object Metric { - def scaleFunction(uom: UnitOfMeasurement): Long ⇒ Double = uom match { + def scaleFunction(uom: UnitOfMeasurement): Double ⇒ Double = uom match { case time: Time ⇒ time.scale(Time.Seconds) - case other ⇒ _.toDouble + case other ⇒ a ⇒ a } def apply(snapshot: InstrumentSnapshot, snapshotUnit: UnitOfMeasurement, name: String, scope: Option[String]): Metric = { |