From d2bb3f442e5b9776b830b5bcbabf303908081536 Mon Sep 17 00:00:00 2001 From: orbiter Date: Tue, 11 Jul 2006 23:43:25 +0000 Subject: [PATCH] fixed timing problem causing a division by zero exception git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2287 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyPeerActions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/yacy/yacyPeerActions.java b/source/de/anomic/yacy/yacyPeerActions.java index 20bc5be89..6eebfe0a9 100644 --- a/source/de/anomic/yacy/yacyPeerActions.java +++ b/source/de/anomic/yacy/yacyPeerActions.java @@ -125,7 +125,7 @@ public class yacyPeerActions { //set the PPM seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(indexedcdiff / uptimediff)); } - sb.setConfig("totalPPM", Long.toString(indexedc / uptime)); + sb.setConfig("totalPPM", Long.toString(indexedc / (uptime + 1))); seedDB.mySeed.put(yacySeed.UPTIME, Long.toString(uptime)); // the number of minutes that the peer is up in minutes/day (moving average MA30) seedDB.mySeed.put(yacySeed.LCOUNT, Integer.toString(sb.urlPool.loadedURL.size())); // the number of links that the peer has stored (LURL's)