From 3954bbfcf94d5e6d395e03b4160fb23268402253 Mon Sep 17 00:00:00 2001 From: allo Date: Tue, 16 Jan 2007 17:41:29 +0000 Subject: [PATCH] removed a bit html from .java file. git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3221 6c8d7289-2bf4-0310-a012-ef5d649a1542 --- htroot/PerformanceQueues_p.html | 2 +- htroot/PerformanceQueues_p.java | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/htroot/PerformanceQueues_p.html b/htroot/PerformanceQueues_p.html index 0648fe691..53d41b5c9 100644 --- a/htroot/PerformanceQueues_p.html +++ b/htroot/PerformanceQueues_p.html @@ -34,7 +34,7 @@ #{table}# - #[shortdescr]# + #(hasurl)##[shortdescr]#::#[shortdescr]##(/hasurl)# #[queuesize]# #[blocktime]# sec #[blockpercent]#% diff --git a/htroot/PerformanceQueues_p.java b/htroot/PerformanceQueues_p.java index 7333c62d6..731e6cc38 100644 --- a/htroot/PerformanceQueues_p.java +++ b/htroot/PerformanceQueues_p.java @@ -97,7 +97,14 @@ public class PerformanceQueues_p { // set values to templates prop.put("table_" + c + "_threadname", threadName); - prop.put("table_" + c + "_shortdescr", (thread.getMonitorURL() == null) ? thread.getShortDescription() : "" + thread.getShortDescription() + ""); + + prop.put("table_" + c + "_hasurl_shortdescr", thread.getShortDescription()); + if(thread.getMonitorURL() == null) { + prop.put("table_"+c+"_hasurl", 0); + }else{ + prop.put("table_"+c+"_hasurl", 1); + prop.put("table_" + c + "_hasurl_url", thread.getMonitorURL()); + } prop.put("table_" + c + "_longdescr", thread.getLongDescription()); queuesize = thread.getJobCount(); prop.put("table_" + c + "_queuesize", (queuesize == Integer.MAX_VALUE) ? "unlimited" : Integer.toString(queuesize));