Skip to content

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

fixed too small peer number in banner

orbiter4331e52d1c4c
diff --git a/htroot/Banner.java b/htroot/Banner.java
index bd68197a4..26b4f8758 100644
--- a/htroot/Banner.java
+++ b/htroot/Banner.java
@@ -84,7 +84,7 @@ public class Banner {
double myqph = 0;
String type = "";
String network = env.getConfig("network.unit.name", "unspecified").toUpperCase();
- int peers = yacyCore.seedDB.sizeConnected();
+ int peers = yacyCore.seedDB.sizeConnected() + 1; // the '+ 1': the own peer is not included in sizeConnected()
long nlinks = yacyCore.seedDB.countActiveURL();
long nwords = yacyCore.seedDB.countActiveRWI();
double nqpm = yacyCore.seedDB.countActiveQPM();