From 014b139c730ca5da2d4441f44283282b5aea5a14 Mon Sep 17 00:00:00 2001 From: theli Date: Sun, 15 May 2005 10:09:15 +0000 Subject: [PATCH] *) Bugfix of "There are xxx entries in the crawler queue. Showing 0 most recent entries" Bug. see: http://www.yacy-forum.de/viewtopic.php?t=338 see: http://www.yacy-forum.de/viewtopic.php?p=2552 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@122 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreate_p.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/htroot/IndexCreate_p.java b/htroot/IndexCreate_p.java index 7cc992462..efc269194 100644 --- a/htroot/IndexCreate_p.java +++ b/htroot/IndexCreate_p.java @@ -375,12 +375,13 @@ public class IndexCreate_p { prop.put("loader-set_list", i ); } - if (crawlerListSize == 0) { + int localStackSize = switchboard.noticeURL.localStackSize(); + if (localStackSize == 0) { prop.put("crawler-queue", 0); } else { prop.put("crawler-queue", 1); plasmaCrawlNURL.entry[] crawlerList = switchboard.noticeURL.localTop(20); - prop.put("crawler-queue_num", crawlerListSize);//num Entries + prop.put("crawler-queue_num", localStackSize);//num Entries prop.put("crawler-queue_show-num", crawlerList.length); //showin sjow-num most recent plasmaCrawlNURL.entry urle; dark = true;