mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-21 00:00:13 +02:00
Bugfix for / by zero when the AssortmentCluster is empty
See: http://www.yacy-forum.de/viewtopic.php?t=2746 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2459 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
14e0bb0dcf
commit
f0278b4092
|
@ -359,7 +359,7 @@ public final class plasmaWordIndexAssortmentCluster extends indexAbstractRI impl
|
|||
c += assortments[j].size() * assortments[j].cacheObjectChunkSize();
|
||||
k += assortments[j].size();
|
||||
}
|
||||
return (int) (c / k);
|
||||
return (k > 0) ? (int) (c / k) : 0;
|
||||
}
|
||||
|
||||
public int[] cacheNodeStatus() {
|
||||
|
|
Loading…
Reference in New Issue
Block a user