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 | 95e17497ce7187f803626a3ae5d27fcad910b11c (patch) | |
tree | c07441d0cde850a76980e278e4059e5b41927f6b /kamon-core | |
parent | 93a1622e89e1378dcd14b0d58c3671aedc65c556 (diff) | |
download | Kamon-95e17497ce7187f803626a3ae5d27fcad910b11c.tar.gz Kamon-95e17497ce7187f803626a3ae5d27fcad910b11c.tar.bz2 Kamon-95e17497ce7187f803626a3ae5d27fcad910b11c.zip |
= core: remove println left from testing.
Diffstat (limited to 'kamon-core')
-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) + } |