From ba2e6de53822fb9a971085e486781a94d4a459d0 Mon Sep 17 00:00:00 2001 From: f1ori Date: Tue, 21 Jul 2009 19:56:40 +0000 Subject: [PATCH] fix empty version string again git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@6236 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- source/de/anomic/search/Switchboard.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/source/de/anomic/search/Switchboard.java b/source/de/anomic/search/Switchboard.java index bfc6e5de5..9d688990e 100644 --- a/source/de/anomic/search/Switchboard.java +++ b/source/de/anomic/search/Switchboard.java @@ -182,6 +182,7 @@ import de.anomic.server.serverSystem; import de.anomic.server.serverThread; import de.anomic.tools.crypt; import de.anomic.tools.CryptoLib; +import de.anomic.yacy.yacyBuildProperties; import de.anomic.yacy.yacyClient; import de.anomic.yacy.yacyCore; import de.anomic.yacy.yacyNewsPool; @@ -2124,7 +2125,7 @@ public final class Switchboard extends serverAbstractSwitch implements serverSwi peers.mySeed().put(yacySeed.ICOUNT, Integer.toString(indexSegment.termIndex().sizesMax())); // the minimum number of words that the peer has indexed (as it says) peers.mySeed().put(yacySeed.SCOUNT, Integer.toString(peers.sizeConnected())); // the number of seeds that the peer has stored peers.mySeed().put(yacySeed.CCOUNT, Double.toString(((int) ((peers.sizeConnected() + peers.sizeDisconnected() + peers.sizePotential()) * 60.0 / (uptime + 1.01)) * 100) / 100.0)); // the number of clients that the peer connects (as connects/hour) - peers.mySeed().put(yacySeed.VERSION, getConfig("version", "")); + peers.mySeed().put(yacySeed.VERSION, yacyBuildProperties.getLongVersion()); peers.mySeed().setFlagDirectConnect(true); peers.mySeed().setLastSeenUTC(); peers.mySeed().put(yacySeed.UTC, DateFormatter.UTCDiffString());