Skip to content

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

fix: banner did not show link and qph for portal mode

Michael Peter Christen5789c96292ca
diff --git a/htroot/Banner.java b/htroot/Banner.java
index 15c19c5ad..119dc92fd 100644
--- a/htroot/Banner.java
+++ b/htroot/Banner.java
@@ -85,11 +85,11 @@ public class Banner {
final Seed seed = sb.peers.mySeed();
if (seed != null) {
name = seed.get(Seed.NAME, "-").toUpperCase();
- links = seed.getLinkCount();
+ links = sb.index.fulltext().collectionSize();
words = seed.getWordCount();
- myppm = seed.getPPM();
- myqph = 60d * seed.getQPM();
-
+ myppm = Switchboard.currentPPM();
+ myqph = 60d * sb.averageQPM();
+
if (sb.peers.mySeed().isVirgin()) {
type = "VIRGIN";
nqph = Math.round(6000d * nqpm) / 100d;