aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2012-06-27 14:58:01 +0000
committerOlivier Lamy <olamy@apache.org>2012-06-27 14:58:01 +0000
commitfc03351de7bb3927c3c01df2e055e74c15ae2eed (patch)
treef6d02d173272d38c0101ad02fce029f2df9d78e3 /archiva-modules
parentdead89634c36fccefa43c3715af351369cf81772 (diff)
downloadarchiva-fc03351de7bb3927c3c01df2e055e74c15ae2eed.tar.gz
archiva-fc03351de7bb3927c3c01df2e055e74c15ae2eed.zip
cache size in kb rather than bytes
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354561 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules')
-rw-r--r--archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java
index 7020a0f39..69ebd13af 100644
--- a/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java
+++ b/archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java
@@ -53,7 +53,8 @@ public class CacheEntry
this.cacheHits = cacheHits;
this.cacheMiss = cacheMiss;
this.cacheHitRate = cacheHitRate;
- this.inMemorySize = inMemorySize;
+ // size is in bytes so use kb
+ this.inMemorySize = inMemorySize / 1024;
}
public String getKey()
@@ -106,6 +107,10 @@ public class CacheEntry
this.cacheHitRate = cacheHitRate;
}
+ /**
+ *
+ * @return cache size in kb
+ */
public long getInMemorySize()
{
return inMemorySize;