Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

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

low012d5c36c8e2e51
diff --git a/htroot/IndexCreateIndexingQueue_p.html b/htroot/IndexCreateIndexingQueue_p.html
index b43c518a2..1711cbcb7 100644
--- a/htroot/IndexCreateIndexingQueue_p.html
+++ b/htroot/IndexCreateIndexingQueue_p.html
@@ -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>
diff --git a/htroot/IndexCreateIndexingQueue_p.java b/htroot/IndexCreateIndexingQueue_p.java
index 0c11fe944..eca6fe9a2 100644
--- a/htroot/IndexCreateIndexingQueue_p.java
+++ b/htroot/IndexCreateIndexingQueue_p.java
@@ -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++) {
@@ -164,8 +165,9 @@ 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);
}