|
|
@ -130,8 +130,8 @@ public class yacyPeerActions {
|
|
|
|
//set the PPM
|
|
|
|
//set the PPM
|
|
|
|
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(Math.round((float)indexedcdiff / ((float)uptimediff/60f))));
|
|
|
|
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(Math.round((float)indexedcdiff / ((float)uptimediff/60f))));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if(uptime > 0)
|
|
|
|
if(uptime > 60)
|
|
|
|
sb.setConfig("totalPPM", Long.toString(indexedc / (1 + (uptime/60))));
|
|
|
|
sb.setConfig("totalPPM", Long.toString(indexedc / (uptime/60)));
|
|
|
|
else
|
|
|
|
else
|
|
|
|
sb.setConfig("totalPPM", Long.toString(indexedc / 1)); //no division by zero
|
|
|
|
sb.setConfig("totalPPM", Long.toString(indexedc / 1)); //no division by zero
|
|
|
|
|
|
|
|
|
|
|
|