Skip to content
Browse files

Issue 250 : Throughputs reported by JMX was set to -1 by default. End…

…s up spoiling all monitoring systems
  • Loading branch information...
1 parent 7bd7797 commit 4085c0ba811567c5b55cc3ac46692de9a2309cc1 @rsumbaly rsumbaly committed with afeinberg
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java/voldemort/store/stats/RequestCounter.java
View
4 src/java/voldemort/store/stats/RequestCounter.java
@@ -39,7 +39,7 @@ public float getThroughput() {
if(elapsed > 0f) {
return (float) (oldv.count / elapsed);
} else {
- return -1f;
+ return 0f;
}
}
@@ -132,7 +132,7 @@ public Accumulator(long startTimeMS, long count, long totalTimeNS, long total) {
}
public double getAverageTimeNS() {
- return count > 0 ? 1f * totalTimeNS / count : -0f;
+ return count > 0 ? 1f * totalTimeNS / count : 0f;
}
}
}

0 comments on commit 4085c0b

Please sign in to comment.
Something went wrong with that request. Please try again.