cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From j...@apache.org
Subject cassandra git commit: TotalLatencyCount should be in micros not nanos
Date Thu, 29 Jan 2015 16:01:45 GMT
Repository: cassandra
Updated Branches:
  refs/heads/trunk d0d6ee783 -> 6d2f2767e


TotalLatencyCount should be in micros not nanos

Patch by tjake; reviewed by Mike Adamson for CASSANDRA-8702


Project: http://git-wip-us.apache.org/repos/asf/cassandra/repo
Commit: http://git-wip-us.apache.org/repos/asf/cassandra/commit/6d2f2767
Tree: http://git-wip-us.apache.org/repos/asf/cassandra/tree/6d2f2767
Diff: http://git-wip-us.apache.org/repos/asf/cassandra/diff/6d2f2767

Branch: refs/heads/trunk
Commit: 6d2f2767e8407b3a786f9fefaec7c50d8d7d2686
Parents: d0d6ee7
Author: T Jake Luciani <jake@apache.org>
Authored: Thu Jan 29 11:00:41 2015 -0500
Committer: T Jake Luciani <jake@apache.org>
Committed: Thu Jan 29 11:00:41 2015 -0500

----------------------------------------------------------------------
 src/java/org/apache/cassandra/metrics/LatencyMetrics.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cassandra/blob/6d2f2767/src/java/org/apache/cassandra/metrics/LatencyMetrics.java
----------------------------------------------------------------------
diff --git a/src/java/org/apache/cassandra/metrics/LatencyMetrics.java b/src/java/org/apache/cassandra/metrics/LatencyMetrics.java
index ced56a8..a2eef68 100644
--- a/src/java/org/apache/cassandra/metrics/LatencyMetrics.java
+++ b/src/java/org/apache/cassandra/metrics/LatencyMetrics.java
@@ -102,7 +102,7 @@ public class LatencyMetrics
     {
         // convert to microseconds. 1 millionth
         latency.update(nanos, TimeUnit.NANOSECONDS);
-        totalLatency.inc(nanos);
+        totalLatency.inc(nanos / 1000);
         for(LatencyMetrics parent : parents)
         {
             parent.addNano(nanos);


Mime
View raw message