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:
hermens 2006-08-25 20:23:04 +00:00
parent 14e0bb0dcf
commit f0278b4092

View File

@ -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() {