This commit is contained in:
Lucio Lelii 2018-06-21 11:03:54 +00:00
parent 8beac0b024
commit 165edfc2d1
1 changed files with 2 additions and 1 deletions

View File

@ -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);