git-svn-id: https://svn.d4science-ii.research-infrastructures.eu/gcube/branches/data-access/storagehub-webapp/1.0@169384 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
8beac0b024
commit
165edfc2d1
|
@ -129,7 +129,8 @@ public class VREQueryRetriever implements Callable<List<Item>> {
|
|||
if (cachedList.size()>CACHE_DIMENSION)
|
||||
cachedList.subList(51, cachedList.size()).clear();
|
||||
logger.trace("retrieving event took {}",System.currentTimeMillis()-start);
|
||||
return cachedList.subList(0, 10);
|
||||
if (cachedList.size()<=10) return cachedList;
|
||||
else return cachedList.subList(0, 10);
|
||||
} catch (Exception e) {
|
||||
logger.error("error getting events for vre {}",vreFolder.getTitle(),e);
|
||||
throw new RuntimeException(e);
|
||||
|
|
Loading…
Reference in New Issue