From 4851b432e177e6f56b55ebe3d17a16c98ea9f4ae Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 5 Jul 2005 13:43:48 +0000 Subject: [PATCH] nice Version display(without svn rev added) git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@380 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/Status.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/htroot/Status.java b/htroot/Status.java index f9a40dc05..7c6384887 100644 --- a/htroot/Status.java +++ b/htroot/Status.java @@ -44,6 +44,7 @@ // if the shell's current path is HTROOT import 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 information prop.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 commet else