Commit 429b9455 authored by Paul Asmuth's avatar Paul Asmuth
Browse files

cleaning up

parent 042e09cc
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -34,7 +34,6 @@ object FnordMetric {
  val number_format = new DecimalFormat("0.#####")

  var debug = false
  var verbose = false

  var flock : FileLock = null

@@ -70,9 +69,6 @@ object FnordMetric {
      else if ((args(n) == "-d") || (args(n) == "--debug"))
        { debug = true; n += 1 }

      else if ((args(n) == "-v") || (args(n) == "--verbose"))
        { verbose = true; n += 1 }

      else if ((args(n) == "-h") || (args(n) == "--help"))
        return usage(true)

@@ -145,7 +141,6 @@ object FnordMetric {
    println("  --admin              <port>   start http admin web interface on this port    ")
    println("  -h, --help                    you're reading it...                           ")
    println("  -d, --debug                   debug mode                                     ")
    println("  -v, --verbose                 verbose mode                                   ")
  }


+2 −2
Original line number Diff line number Diff line
@@ -58,8 +58,8 @@ class SwapFile(metric_key: MetricKey) {
    buffer.rewind
  }

  // reads a chunk of of values from the swapfile at position into
  // the specified destionation list buffer
  // reads a chunk of of values from the swapfile at position into the
  // specified destionation list buffer. this method is thread safe
  def load_chunk(position: Int, dst: ListBuffer[(Long, Double)]) : Int = {
    var read_pos = 0