mirror of https://github.com/apache/archiva.git
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:
parent
dead89634c
commit
fc03351de7
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue