openjpa-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ppod...@apache.org
Subject svn commit: r694116 - /openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java
Date Thu, 11 Sep 2008 04:53:50 GMT
Author: ppoddar
Date: Wed Sep 10 21:53:49 2008
New Revision: 694116

URL: http://svn.apache.org/viewvc?rev=694116&view=rev
Log:
Fix wrong index in data cache statisitics

Modified:
    openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java

Modified: openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java
URL: http://svn.apache.org/viewvc/openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java?rev=694116&r1=694115&r2=694116&view=diff
==============================================================================
--- openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java
(original)
+++ openjpa/branches/sql-cache/openjpa-kernel/src/main/java/org/apache/openjpa/datacache/CacheStatistics.java
Wed Sep 10 21:53:49 2008
@@ -184,7 +184,7 @@
 		
 		private long getCount(Map<Class, long[]> 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() {



Mime
View raw message