Repository: ignite
Updated Branches:
  refs/heads/master 457e8c11c -> f9868d447


Fixed 'misses' cache metric


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

Branch: refs/heads/master
Commit: f9868d44757df79706b2d7c0a60acd1546ce8e8d
Parents: 457e8c1
Author: Valentin Kulichenko <[email protected]>
Authored: Wed Jan 27 19:49:37 2016 -0800
Committer: Valentin Kulichenko <[email protected]>
Committed: Wed Jan 27 19:49:37 2016 -0800

----------------------------------------------------------------------
 .../ignite/internal/processors/cache/CacheMetricsSnapshot.java   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/f9868d44/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
----------------------------------------------------------------------
diff --git 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
index fc7e9a7..1971d5b 100644
--- 
a/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
+++ 
b/modules/core/src/main/java/org/apache/ignite/internal/processors/cache/CacheMetricsSnapshot.java
@@ -353,7 +353,7 @@ public class CacheMetricsSnapshot implements CacheMetrics, 
Externalizable {
             reads += e.getCacheGets();
             puts += e.getCachePuts();
             hits += e.getCacheHits();
-            misses += e.getCacheHits();
+            misses += e.getCacheMisses();
             txCommits += e.getCacheTxCommits();
             txRollbacks += e.getCacheTxRollbacks();
             evicts += e.getCacheEvictions();
@@ -966,4 +966,4 @@ public class CacheMetricsSnapshot implements CacheMetrics, 
Externalizable {
         writeBehindCriticalOverflowCnt = in.readInt();
         writeBehindErrorRetryCnt = in.readInt();
     }
-}
\ No newline at end of file
+}

Reply via email to