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

pull/1/head
Michael Peter Christen 10 years ago
parent 9bf0d7ecb9
commit 5789c96292

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

Loading…
Cancel
Save