diff --git a/webui/src/main/webapp/Downloads.jsp b/webui/src/main/webapp/Downloads.jsp index 5be227cf..bc2bb272 100644 --- a/webui/src/main/webapp/Downloads.jsp +++ b/webui/src/main/webapp/Downloads.jsp @@ -31,21 +31,6 @@ diff --git a/webui/src/main/webapp/Home.jsp b/webui/src/main/webapp/Home.jsp index e7f3b385..d6664f6f 100644 --- a/webui/src/main/webapp/Home.jsp +++ b/webui/src/main/webapp/Home.jsp @@ -184,21 +184,6 @@ var lastXML = null; var infoHash = null; - function refreshConnectionsCount() { - var xmlhttp = new XMLHttpRequest(); - xmlhttp.onreadystatechange = function() { - if (this.readyState == 4 && this.status == 200) { - var connections = this.responseXML.getElementsByTagName("Connections"); - var count = connections[0].childNodes[0].nodeValue - var connectionCountSpan = document.getElementById("connectionsCount"); - var countString = "Connections: "+count; - connectionCountSpan.innerHTML = countString; - } - } - xmlhttp.open("GET", "/MuWire/Search?section=connectionsCount", true); - xmlhttp.send(); - } - function updateSender(senderName) { sender = senderName; @@ -402,9 +387,6 @@ setInterval(refreshGroupByFile, 3000); setTimeout(refreshGroupByFile, 1); <% } %> - - setInterval(refreshConnectionsCount, 3000); - setTimeout(refreshConnectionsCount, 1); diff --git a/webui/src/main/webapp/header.jsi b/webui/src/main/webapp/header.jsi index c4ce93db..3aa246ee 100644 --- a/webui/src/main/webapp/header.jsi +++ b/webui/src/main/webapp/header.jsi @@ -6,8 +6,27 @@
${persona}
- Connections: <%=connectionCounter.getConnections() %> + Connections : 0
+ <% if ("Home".equals(pagetitle)) { %>
diff --git a/webui/src/main/webapp/initcode.jsi b/webui/src/main/webapp/initcode.jsi index 3556c50d..1a5b9b7e 100644 --- a/webui/src/main/webapp/initcode.jsi +++ b/webui/src/main/webapp/initcode.jsi @@ -1,6 +1,5 @@ <% MuWireClient client = (MuWireClient) application.getAttribute("mwClient"); - ConnectionCounter connectionCounter = (ConnectionCounter) client.getServletContext().getAttribute("connectionCounter"); String persona = client.getCore().getMe().getHumanReadableName(); String version = client.getCore().getVersion(); %>