write java version to status page

pull/1/head
Michael Peter Christen 10 years ago
parent 604ccd8072
commit 29f6e9db7a

@ -160,9 +160,9 @@ public class Status
// version information // version information
//final String versionstring = yacyVersion.combined2prettyVersion(sb.getConfig("version","0.1")); //final String versionstring = yacyVersion.combined2prettyVersion(sb.getConfig("version","0.1"));
final String versionstring = final String versionstring = yacyBuildProperties.getVersion() + "/" + yacyBuildProperties.getSVNRevision();
yacyBuildProperties.getVersion() + "/" + yacyBuildProperties.getSVNRevision();
prop.put("versionpp", versionstring); prop.put("versionpp", versionstring);
prop.put("java.version", System.getProperty("java.version"));
// place some more hints // place some more hints
if (adminaccess && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() == 0) { if (adminaccess && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() == 0) {

@ -10,6 +10,7 @@
:: ::
<div>Uptime: #[uptime]#</div> <div>Uptime: #[uptime]#</div>
#(/peerStatistics)# #(/peerStatistics)#
<div>Java version: #[java.version]#</div>
<div>Processors: #[processors]#</div> <div>Processors: #[processors]#</div>
<div>Load: #[load]#</div> <div>Load: #[load]#</div>
<div>Threads: #[processesCurrentInclDaemon]#/#[processesCurrentOnlyDaemon]#, peak:#[processesPeak]#, total:#[processesTotal]#</div> <div>Threads: #[processesCurrentInclDaemon]#/#[processesCurrentOnlyDaemon]#, peak:#[processesPeak]#, total:#[processesTotal]#</div>

Loading…
Cancel
Save