Commit 380b17be authored by Paul Asmuth's avatar Paul Asmuth
Browse files

cleaning up...

parent 80045dd6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line

// FnordMetric Enterprise
//   (c) 2011-2013 Paul Asmuth <paul@paulasmuth.com>
//
// Licensed under the MIT License (the "License"); you may not use this
+2 −2
Original line number Diff line number Diff line
@@ -88,8 +88,8 @@ class Metric(key: MetricKey) {
    var rbuf_pos = 0

    // search the ring buffer backwards without synchronization. the basic
    // assumption here is, that the system time will only progress forward.
    // if the system time jumps backwards this will race
    // assumption here is that the system time will only progress forward.
    // if the system time should jump backwards this would race
    while (rbuf_pos >= 0 && rbuf_pos < rbuf_snap.size) {
      val cur = rbuf_snap(rbuf_pos)