Skip to content

Commit

Permalink
max. num of Entries
Browse files Browse the repository at this point in the history
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1043 6c8d7289-2bf4-0310-a012-ef5d649a1542
  • Loading branch information
allo committed Nov 7, 2005
1 parent 8d8d866 commit 89a4cca
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion htroot/xml/queues/indexing_p.java
Expand Up @@ -97,8 +97,15 @@ public static serverObjects respond(httpHeader header, serverObjects post, serve
if ((switchboard.sbQueue.size() > 0)) {
entryList.addAll(switchboard.sbQueue.list(0));
}
int size=10;
if(post!= null && post.containsKey("num")){
size=(int)Integer.parseInt((String)post.get("num"));
}
if(size>entryList.size()){
size=entryList.size();
}

for (i = 0; i < entryList.size(); i++) {
for (i = 0; i < size; i++) {
boolean inProcess = i < inProcessCount;
pcentry = (plasmaSwitchboardQueue.Entry) entryList.get(i);
long entrySize = pcentry.size();
Expand Down

0 comments on commit 89a4cca

Please sign in to comment.