Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

*) fix for wrong totalPPM-calculation

auron_xa82e926c5dce
diff --git a/source/de/anomic/yacy/yacyPeerActions.java b/source/de/anomic/yacy/yacyPeerActions.java
index efb025353..6cde64694 100644
--- a/source/de/anomic/yacy/yacyPeerActions.java
+++ b/source/de/anomic/yacy/yacyPeerActions.java
@@ -131,7 +131,7 @@ public class yacyPeerActions {
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(Math.round((float)indexedcdiff / ((float)uptimediff/60f))));
}
if(uptime > 0)
- sb.setConfig("totalPPM", Long.toString(indexedc / uptime));
+ sb.setConfig("totalPPM", Long.toString(indexedc / (uptime/60)));
else
sb.setConfig("totalPPM", Long.toString(indexedc / 1)); //no division by zero