From 38d915e24ce039236a409b68b31468e48f659152 Mon Sep 17 00:00:00 2001 From: allo Date: Sun, 27 Nov 2005 09:50:23 +0000 Subject: [PATCH] limiting the Number of Items displayed to 100 max. http://www.yacy-forum.de/viewtopic.php?p=13275 git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1131 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/IndexCreateIndexingQueue_p.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java index 0aa20dc85..1dd3f25e9 100644 --- a/htroot/IndexCreateIndexingQueue_p.java +++ b/htroot/IndexCreateIndexingQueue_p.java @@ -140,7 +140,9 @@ public class IndexCreateIndexingQueue_p { entryList.addAll(switchboard.sbQueue.list(0)); } - for (int i = 0; i < entryList.size(); i++) { + int count=entryList.size(); + if(count>100)count=100; + for (int i = 0; i < count; i++) { boolean inProcess = i < inProcessCount; pcentry = (plasmaSwitchboardQueue.Entry) entryList.get(i); long entrySize = pcentry.size();