nice Version display(without svn rev added)

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@380 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 20 years ago
parent 2d1ccae406
commit 4851b432e1

@ -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

Loading…
Cancel
Save