mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
the best PPM ever! ;-p
Now stopped indexingstop is recognized as 0 PPM. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1641 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
parent
0b60b9bf51
commit
9d6bae77ee
|
@ -116,8 +116,16 @@ public class yacyPeerActions {
|
||||||
sb.setConfig("lastseedcheckUptime", uptime);
|
sb.setConfig("lastseedcheckUptime", uptime);
|
||||||
sb.setConfig("lastseedcheckIndexedc", indexedc);
|
sb.setConfig("lastseedcheckIndexedc", indexedc);
|
||||||
}
|
}
|
||||||
if(! (indexedcdiff == 0 || uptimediff == 0) ){ //keep old one, if the diff is 0
|
|
||||||
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(indexedcdiff / uptimediff)); // the speed of indexing (pages/minute) of the peer
|
//the speed of indexing (pages/minute) of the peer
|
||||||
|
if(uptimediff==0){
|
||||||
|
//no timedelta. we cannot calculate a new value
|
||||||
|
}else if(indexedcdiff==0){
|
||||||
|
//no indexing in the time...
|
||||||
|
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(0));
|
||||||
|
}else{
|
||||||
|
//set the PPM
|
||||||
|
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(indexedcdiff / uptimediff));
|
||||||
}
|
}
|
||||||
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.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)
|
seedDB.mySeed.put(yacySeed.LCOUNT, Integer.toString(sb.urlPool.loadedURL.size())); // the number of links that the peer has stored (LURL's)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user