Permalink
Browse files

cleaning up

  • Loading branch information...
1 parent 6434322 commit 8474f553d7984b503d5385aea916d60fdcb54eb7 @paulasmuth committed Mar 4, 2013
View
2 fnordmetric-enterprise/src/FnordMetric.scala
@@ -145,7 +145,7 @@ object FnordMetric {
def now : Long =
- System.nanoTime / 1000000
+ System.currentTimeMillis
def log(msg: String) = {
View
3 fnordmetric-enterprise/src/ValuesInInstruction.scala
@@ -14,6 +14,9 @@ class ValuesInInstruction(key: MetricKey, time0: Long, time1: Long) extends Abst
val values = metric.values_in(time1 * 1000, time0 * 1000)
val resp = new StringBuffer
+ if (values.size == 0)
+ return "null"
+
for (ind <- (0 until values.size)) {
resp.append(values(ind)._1)
resp.append(":")

0 comments on commit 8474f55

Please sign in to comment.