From 12da0c27586c855c347de887e6ad4d947ff0568e Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 26 Jul 2005 10:26:35 +0000 Subject: [PATCH] http://www.yacy-forum.de/viewtopic.php?p=5645#5645 the line with ??? does not work... git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@434 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Status.java | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/htroot/Status.java b/htroot/Status.java index a3a691b53..3800db9cf 100644 --- a/htroot/Status.java +++ b/htroot/Status.java @@ -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());