the line with ??? does not work...


git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@434 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 89e9e467d2
commit 12da0c2758

@ -81,12 +81,16 @@ public class Status {
// version information
prop.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());

Loading…
Cancel
Save