Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
nice Version display(without svn rev added)
allo4851b432e177
diff --git a/htroot/Status.java b/htroot/Status.javaindex f9a40dc05..7c6384887 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -44,6 +44,7 @@// if the shell's current path is HTROOTimport java.text.DecimalFormat;+import java.lang.Math;import de.anomic.http.httpHeader;import de.anomic.http.httpdByteCountInputStream;@@ -80,7 +81,7 @@ public class Status {// version informationprop.put("svnRevision", env.getConfig("svnRevision", ""));float thisVersion = yacyCore.latestVersion;- try {thisVersion = Float.parseFloat(env.getConfig("version","0.1"));} catch (NumberFormatException e) {}+ try {thisVersion = Math.round(Float.parseFloat(env.getConfig("version","0.1")));} catch (NumberFormatException e) {}if (yacyCore.latestVersion == thisVersion)prop.put("versioncomment", 0);//no commetelse