Skip to content

Commit

Permalink
*) new logging for PPM-Calculation
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3522 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
auron_x committed Mar 25, 2007
1 parent 5941577 commit 00bc0c1
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions source/de/anomic/yacy/yacyPeerActions.java
Expand Up @@ -119,10 +119,12 @@ public void updateMySeed() {

//the speed of indexing (pages/minute) of the peer
sb.totalPPM = (int) (sb.indexedPages * 60 / Math.max(uptime, 1));
yacyCore.log.logInfo("PPM-Calculation\n\t"+
Math.max((float) indexedcdiff, 0f)+" Pages * 60 / "+
Math.max((float) uptimediff, 1f)+" Seconds = "+
(Math.max((float) indexedcdiff, 0f) * 60f / Math.max((float) uptimediff, 1f))+" PPM"
yacyCore.log.logInfo("PPM-Calculation:\n"+
"\tStartuptime: "+sb.startupTime+"\n"+
"\tCurrenttime: "+System.currentTimeMillis()+"\n"+
"\tUptime: "+uptime+"\n"+
"\tLastcheck: "+sb.lastseedcheckuptime+"\n"+
"\tUptimediff: "+uptimediff
);
seedDB.mySeed.put(yacySeed.ISPEED, Long.toString(Math.round(Math.max((float) indexedcdiff, 0f) * 60f / Math.max((float) uptimediff, 1f))));
sb.totalQPM = sb.requestedQueries * 60d / Math.max((double) uptime, 1d);
Expand Down

0 comments on commit 00bc0c1

Please sign in to comment.