*) fix for wrong totalPPM-calculation

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2522 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
auron_x 19 years ago
parent 33898ae7e9
commit a82e926c5d

@ -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

Loading…
Cancel
Save