*) now showing the total number of entries in the queue in addition to the number of entries in the list

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1168 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
low012 19 years ago
parent dc778659fb
commit d5c36c8e2e

@ -18,7 +18,7 @@ The indexing queue is empty<br>
<input type="submit" name="clearIndexingQueue" value="clear indexing queue">
</form>
<br>
There are #[num]# entries with a total size of #[totalSize]# in the indexing queue:<br>
There are #[num]# entries in the indexing queue. Showing #[show]# entries with a total size of #[totalSize]#:<br>
<table border="0" cellpadding="2" cellspacing="1">
<tr class="TableHeader">
<th class="small">Initiator</th>

@ -124,7 +124,7 @@ public class IndexCreateIndexingQueue_p {
dark = true;
plasmaSwitchboardQueue.Entry pcentry;
int inProcessCount = 0, entryCount = 0;
int inProcessCount = 0, entryCount = 0, totalCount = 0;
long totalSize = 0;
try {
ArrayList entryList = new ArrayList();
@ -141,6 +141,7 @@ public class IndexCreateIndexingQueue_p {
}
int count=entryList.size();
totalCount = count;
if(count>100)count=100;
for (int i = 0; i < count; i++) {
@ -165,7 +166,8 @@ public class IndexCreateIndexingQueue_p {
}
} catch (IOException e) {}
prop.put("indexing-queue_num", entryCount);//num entries in queue
prop.put("indexing-queue_show", entryCount);//show shown entries
prop.put("indexing-queue_num", totalCount);//num entries in queue
prop.put("indexing-queue_totalSize", bytesToString(totalSize));//num entries in queue
prop.put("indexing-queue_list", entryCount);
}

Loading…
Cancel
Save