cache size in kb rather than bytes

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1354561 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-06-27 14:58:01 +00:00
parent dead89634c
commit fc03351de7
1 changed files with 6 additions and 1 deletions

View File

@ -53,7 +53,8 @@ public class CacheEntry
this.cacheHits = cacheHits; this.cacheHits = cacheHits;
this.cacheMiss = cacheMiss; this.cacheMiss = cacheMiss;
this.cacheHitRate = cacheHitRate; this.cacheHitRate = cacheHitRate;
this.inMemorySize = inMemorySize; // size is in bytes so use kb
this.inMemorySize = inMemorySize / 1024;
} }
public String getKey() public String getKey()
@ -106,6 +107,10 @@ public class CacheEntry
this.cacheHitRate = cacheHitRate; this.cacheHitRate = cacheHitRate;
} }
/**
*
* @return cache size in kb
*/
public long getInMemorySize() public long getInMemorySize()
{ {
return inMemorySize; return inMemorySize;