From 62b6c2b9e7b921f8462cfad3f3fcb4c58a610852 Mon Sep 17 00:00:00 2001
From: hydrox
Date: Wed, 2 Nov 2005 10:31:52 +0000
Subject: [PATCH] *)added news count to News.html
git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@1014 6c8d7289-2bf4-0310-a012-ef5d649a1542
---
htroot/News.html | 8 ++++----
htroot/News.java | 4 ++++
2 files changed, 8 insertions(+), 4 deletions(-)
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.
Above you can see four menues:
-- Incoming News: latest news that arrived your peer.
+
- Incoming News (#[insize]#): 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
-- Processed News: this is simply an archive of incoming news that you removed by processing.
-- Outgoing News: here your can see news entries that you have created. These news are currently broadcasted to other peers.
+
- Processed News (#[prsize]#): this is simply an archive of incoming news that you removed by processing.
+- Outgoing News (#[ousize]#): 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.
-- Published News: your news that have been broadcasted sufficiently or that you have removed from the broadcast list.
+- Published News (#[pusize]#): your news that have been broadcasted sufficiently or that you have removed from the broadcast list.
::
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);