Browse files

cleaning up

  • Loading branch information...
1 parent 042e09c commit 429b9455d0035f831524f975419ec6729f34322b @paulasmuth committed Feb 26, 2013
Showing with 2 additions and 7 deletions.
  1. +0 −5 fnordmetric-enterprise/src/FnordMetric.scala
  2. +2 −2 fnordmetric-enterprise/src/SwapFile.scala
View
5 fnordmetric-enterprise/src/FnordMetric.scala
@@ -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 ")
}
View
4 fnordmetric-enterprise/src/SwapFile.scala
@@ -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

0 comments on commit 429b945

Please sign in to comment.