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

View File

@ -53,7 +53,8 @@ public CacheEntry( String key, long size, long cacheHits, long cacheMiss, String
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 void setCacheHitRate( String cacheHitRate )
this.cacheHitRate = cacheHitRate;
}
/**
*
* @return cache size in kb
*/
public long getInMemorySize()
{
return inMemorySize;