From 5789c96292ca808c48c5cd2e043040cf6d9afac6 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Wed, 25 Mar 2015 13:21:36 +0100 Subject: [PATCH] fix: banner did not show link and qph for portal mode --- htroot/Banner.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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;