mirror of
https://github.com/apache/archiva.git
synced 2025-02-27 21:19:11 +00:00
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 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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user