From fc03351de7bb3927c3c01df2e055e74c15ae2eed Mon Sep 17 00:00:00 2001 From: Olivier Lamy Date: Wed, 27 Jun 2012 14:58:01 +0000 Subject: [PATCH] cache size in kb rather than bytes git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354561 13f79535-47bb-0310-9956-ffa450edef68 --- .../java/org/apache/archiva/rest/api/model/CacheEntry.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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;