Skip to content

Distributed Peer-to-Peer Web Search Engine and Intranet Search Appliance

removed a bit html from .java file.

allo3954bbfcf94d
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 @@
</tr>
#{table}#
<tr class="TableCellDark">
- <td align="left">#[shortdescr]#</td>
+ <td align="left">#(hasurl)##[shortdescr]#::<a href="#[url]#">#[shortdescr]#</a>#(/hasurl)#</td>
<td align="right">#[queuesize]#</td>
<td align="right">#[blocktime]#&nbsp;sec</td>
<td align="right">#[blockpercent]#%</td>
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() : "<a href=\"" + thread.getMonitorURL() + "\">" + thread.getShortDescription() + "</a>");
+
+ 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));