]> source.dussan.org Git - archiva.git/commitdiff
cache size in kb rather than bytes
authorOlivier Lamy <olamy@apache.org>
Wed, 27 Jun 2012 14:58:01 +0000 (14:58 +0000)
committerOlivier Lamy <olamy@apache.org>
Wed, 27 Jun 2012 14:58:01 +0000 (14:58 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354561 13f79535-47bb-0310-9956-ffa450edef68

archiva-modules/archiva-web/archiva-rest/archiva-rest-api/src/main/java/org/apache/archiva/rest/api/model/CacheEntry.java

index 7020a0f39d14eb56d6196d1748c8013dfda76985..69ebd13af020848d24f7bc124422e942a8506c4e 100644 (file)
@@ -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;