aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;