Commit 8e65e4c7 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

cleaning up

parent 493561b4
Loading
Loading
Loading
Loading
+4 −5
Original line number Diff line number Diff line
@@ -16,11 +16,10 @@ class Metric(key: MetricKey) {
  var rbuf_seek_pos = 0

  // adds a value to this metric
  def sample(value: Double) = {
    this.synchronized {
  def sample(value: Double) = this.synchronized {

    bucket.flush_every(key.flush_interval, (
      (time, value) => flush_bucket(time, value) ))
    }

    bucket.sample(value)
  }