From e047748e7720d7e9438c71aed130fea48615abe6 Mon Sep 17 00:00:00 2001 From: Pinaki Poddar Date: Thu, 11 Sep 2008 04:54:49 +0000 Subject: [PATCH] Fix wrong index in data cache statisitics git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@694117 13f79535-47bb-0310-9956-ffa450edef68 --- .../main/java/org/apache/openjpa/datacache/CacheStatistics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java index 618fea5a6..309af370a 100644 --- a/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java +++ b/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java @@ -184,7 +184,7 @@ public interface CacheStatistics extends Serializable { private long getCount(Map target, Class c, int index) { long[] row = target.get(c); - return (row == null) ? 0 : row[WRITE]; + return (row == null) ? 0 : row[index]; } public Date since() {