*) reverted last commit

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@2546 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
auron_x 18 years ago
parent a7281a9b4d
commit 005400a137

@ -156,17 +156,12 @@ public final class yacy {
*/
public static String combinedVersionString2PrettyString(String ver) {
final Matcher matcher = Pattern.compile("\\A(\\d+\\.\\d{3})(\\d{4}|\\d{5})\\z").matcher(ver);
String prettyversion = "";
if (!matcher.find()) {
serverLog.logWarning("STARTUP", "Wrong format of version-string: '" + ver + "'. Using default pretty string 'dev/00000' instead");
//return "dev/00000";
prettyversion = "dev/00000";
}
//return (Double.parseDouble(matcher.group(1)) < 0.11 ? "dev" : matcher.group(1)) + "/" + matcher.group(2);
prettyversion = (Double.parseDouble(matcher.group(1)) < 0.11 ? "dev" : matcher.group(1)) + "/" + matcher.group(2);
serverLog.logInfo("STARTUP", "created Pretty version \""+prettyversion+"\" from \""+ver+"\"");
return prettyversion;
return "dev/00000";
}
return (Double.parseDouble(matcher.group(1)) < 0.11 ? "dev" : matcher.group(1)) + "/" + matcher.group(2);
}
/**

Loading…
Cancel
Save