Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance
Java decentralizedintranet-searchintranet-search-enginep2pp2p-networkprivacyprivacy-protectionsearch-enginesearchenginewebweb-search-enginewebsearchwebseearch-engine
http://www.yacy-forum.de/viewtopic.php?p=5645#5645 the line with ??? does not work...
allo12da0c27586c
diff --git a/htroot/Status.java b/htroot/Status.javaindex a3a691b53..3800db9cf 100644--- a/htroot/Status.java+++ b/htroot/Status.java@@ -81,12 +81,16 @@ public class Status {// version informationprop.put("svnRevision", env.getConfig("svnRevision", ""));- float thisVersion = yacyCore.latestVersion;- try {thisVersion = Math.round(Float.parseFloat(env.getConfig("version","0.1")));} catch (NumberFormatException e) {}- if (yacyCore.latestVersion == thisVersion)- prop.put("versioncomment", 0);//no commet- else+ double thisVersion = Float.parseFloat(env.getConfig("version","0.1"));+ //cut off the SVN Rev in the Version+ try {thisVersion = Math.round(thisVersion*100.0)/100.0;} catch (NumberFormatException e) {}+ prop.put("version", thisVersion.toString()); //???+ //System.out.println("TEST: "+thisVersion);+ if (yacyCore.latestVersion >= (thisVersion+0.01)) //only new Versions(not new SVN)prop.put("versioncomment", 1);//new version+ else+ prop.put("versioncomment", 0);//no commet+prop.put("versioncomment_latestVersion", "" + yacyCore.latestVersion);prop.put("host", serverCore.publicLocalIP());