fix division by zero error
This commit is contained in:
parent
3b5c133c71
commit
0d63fd68a8
|
@ -116,7 +116,7 @@ public abstract class AbstractConcurrentMapFilterCache extends AbstractIndexComp
|
||||||
totalCount++;
|
totalCount++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return new EntriesStats(sizeInBytes, totalCount / segmentsCount);
|
return new EntriesStats(sizeInBytes, segmentsCount == 0 ? 0 : totalCount / segmentsCount);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override public Filter cache(Filter filterToCache) {
|
@Override public Filter cache(Filter filterToCache) {
|
||||||
|
|
Loading…
Reference in New Issue