diff options
author | Ivan Topolnjak <ivantopo@gmail.com> | 2015-01-26 20:00:45 +0100 |
---|---|---|
committer | Ivan Topolnjak <ivantopo@gmail.com> | 2015-01-26 20:17:04 +0100 |
commit | 7836b44f264e462028020cb1ac255bf16fed2415 (patch) | |
tree | b6cdae3e689fbfd01007b2ed946c3c5adeb9a637 /kamon-core/src | |
parent | bb9189e19c622efa0dfb4552d272ef1bcabca47b (diff) | |
download | Kamon-7836b44f264e462028020cb1ac255bf16fed2415.tar.gz Kamon-7836b44f264e462028020cb1ac255bf16fed2415.tar.bz2 Kamon-7836b44f264e462028020cb1ac255bf16fed2415.zip |
= core: remove println left from testing.
Diffstat (limited to 'kamon-core/src')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/instrument/Gauge.scala | 17 |
1 files changed, 4 insertions, 13 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/Gauge.scala b/kamon-core/src/main/scala/kamon/metric/instrument/Gauge.scala index 2341504c..ea5a9b41 100644 --- a/kamon-core/src/main/scala/kamon/metric/instrument/Gauge.scala +++ b/kamon-core/src/main/scala/kamon/metric/instrument/Gauge.scala @@ -56,13 +56,7 @@ class DifferentialValueCollector(wrappedValueCollector: CurrentValueCollector) e def currentValue: Long = { if (_readAtLeastOnce) { val wrappedCurrent = wrappedValueCollector.currentValue - val d = wrappedCurrent - _lastObservedValue.getAndSet(wrappedCurrent) - - if (d < 0) - println("HUBO MENOR QUE CERO") - - d - + wrappedCurrent - _lastObservedValue.getAndSet(wrappedCurrent) } else { _lastObservedValue.set(wrappedValueCollector.currentValue) _readAtLeastOnce = true @@ -96,11 +90,8 @@ class HistogramBackedGauge(underlyingHistogram: Histogram, currentValueCollector automaticValueCollectorSchedule.get().cancel() } - def refreshValue(): Unit = { - val a = currentValueCollector.currentValue - if (a < 0) - println("RECORDING FROM GAUGE => " + a + " - " + currentValueCollector.getClass) - underlyingHistogram.record(a) - } + def refreshValue(): Unit = + underlyingHistogram.record(currentValueCollector.currentValue) + } |