From a6245a302f60f23457eaf7e2ef4b784ca85a1576 Mon Sep 17 00:00:00 2001 From: allo Date: Sat, 28 Jan 2006 19:22:30 +0000 Subject: [PATCH] even better ppm ;-) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1481 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/yacy/yacyPeerActions.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/de/anomic/yacy/yacyPeerActions.java b/source/de/anomic/yacy/yacyPeerActions.java index a73c831fa..19d9d12db 100644 --- a/source/de/anomic/yacy/yacyPeerActions.java +++ b/source/de/anomic/yacy/yacyPeerActions.java @@ -112,7 +112,7 @@ public class yacyPeerActions { long uptimediff = uptime - Long.parseLong(sb.getConfig("lastseedcheckUptime", "0")); //TODO: Do not use the switchboard? long indexedc = sb.getThread("80_indexing").getBusyCycles(); long indexedcdiff = indexedc - Long.parseLong(sb.getConfig("lastseedcheckIndexedc", "0")); - if(uptimediff > 5){ + if( uptimediff > 5 || ((String)sb.getConfig("lastseedcheckUptime", "-1")).equals("-1") ){ sb.setConfig("lastseedcheckUptime", uptime); sb.setConfig("lastseedcheckIndexedc", indexedc); }