From 29f6e9db7a053489c09e59bfbbb7e07737aa4b78 Mon Sep 17 00:00:00 2001 From: Michael Peter Christen Date: Fri, 23 Jan 2015 17:57:54 +0100 Subject: [PATCH] write java version to status page --- htroot/Status.java | 4 ++-- htroot/Status_p.inc | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/htroot/Status.java b/htroot/Status.java index 3e666cdb6..5278c0ded 100644 --- a/htroot/Status.java +++ b/htroot/Status.java @@ -160,9 +160,9 @@ public class Status // version information //final String versionstring = yacyVersion.combined2prettyVersion(sb.getConfig("version","0.1")); - final String versionstring = - yacyBuildProperties.getVersion() + "/" + yacyBuildProperties.getSVNRevision(); + final String versionstring = yacyBuildProperties.getVersion() + "/" + yacyBuildProperties.getSVNRevision(); prop.put("versionpp", versionstring); + prop.put("java.version", System.getProperty("java.version")); // place some more hints if (adminaccess && sb.getThread(SwitchboardConstants.CRAWLJOB_LOCAL_CRAWL).getJobCount() == 0) { diff --git a/htroot/Status_p.inc b/htroot/Status_p.inc index fcb426dd0..2923a8a59 100644 --- a/htroot/Status_p.inc +++ b/htroot/Status_p.inc @@ -10,6 +10,7 @@ ::
Uptime: #[uptime]#
#(/peerStatistics)# +
Java version: #[java.version]#
Processors: #[processors]#
Load: #[load]#
Threads: #[processesCurrentInclDaemon]#/#[processesCurrentOnlyDaemon]#, peak:#[processesPeak]#, total:#[processesTotal]#