Skip to content

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

*)added news count to News.html

hydrox62b6c2b9e7b9
diff --git a/htroot/News.html b/htroot/News.html
index a9a717816..f1e23d22c 100644
--- a/htroot/News.html
+++ b/htroot/News.html
@@ -51,13 +51,13 @@ More news services will follow.</p>
<p>
Above you can see four menues:
<ul>
-<li><b>Incoming News</b>: latest news that arrived your peer.
+<li><b>Incoming News (#[insize]#)</b>: latest news that arrived your peer.
Only these news will be used to display specific news services as explained above.
You can process these news with a button on the page to remove their appearance from the IndexCreate and Network page</li>
-<li><b>Processed News</b>: this is simply an archive of incoming news that you removed by processing.</li>
-<li><b>Outgoing News</b>: here your can see news entries that you have created. These news are currently broadcasted to other peers.
+<li><b>Processed News (#[prsize]#)</b>: this is simply an archive of incoming news that you removed by processing.</li>
+<li><b>Outgoing News (#[ousize]#)</b>: here your can see news entries that you have created. These news are currently broadcasted to other peers.
you can stop the broadcast if you want.</li>
-<li><b>Published News</b>: your news that have been broadcasted sufficiently or that you have removed from the broadcast list.</li>
+<li><b>Published News (#[pusize]#)</b>: your news that have been broadcasted sufficiently or that you have removed from the broadcast list.</li>
</ul><br>
</p>
::
diff --git a/htroot/News.java b/htroot/News.java
index a60fa8c31..06d3cfad1 100644
--- a/htroot/News.java
+++ b/htroot/News.java
@@ -115,6 +115,10 @@ public class News {
// show overview
prop.put("table", 0);
prop.put("page", 0);
+ prop.put("table_insize", yacyCore.newsPool.size(yacyNewsPool.INCOMING_DB));
+ prop.put("table_prsize", yacyCore.newsPool.size(yacyNewsPool.PROCESSED_DB));
+ prop.put("table_ousize", yacyCore.newsPool.size(yacyNewsPool.OUTGOING_DB));
+ prop.put("table_pusize", yacyCore.newsPool.size(yacyNewsPool.PUBLISHED_DB));
} else {
// generate table
prop.put("table", 1);