From 182805a65dbc474ee789575add2dfe15c9a7bd00 Mon Sep 17 00:00:00 2001 From: fros4943 Date: Wed, 3 Feb 2010 15:55:50 +0000 Subject: [PATCH] title bug fix: mote may have several log interfaces --- .../java/se/sics/cooja/plugins/LogListener.java | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java index 0b8ad5cf7..4dd7bded3 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/LogListener.java +++ b/tools/cooja/java/se/sics/cooja/plugins/LogListener.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: LogListener.java,v 1.24 2010/01/15 10:54:05 fros4943 Exp $ + * $Id: LogListener.java,v 1.25 2010/02/03 15:55:50 fros4943 Exp $ */ package se.sics.cooja.plugins; @@ -297,15 +297,8 @@ public class LogListener extends VisPlugin { } private void updateTitle() { - int observing = simulation.getEventCentral().getLogOutputObservationsCount(); - int tot = simulation.getMotesCount(); - if (observing == tot) { - setTitle("Log Listener (listening on all " + simulation.getMotesCount() + " motes)"); - } else { - setTitle("Log Listener (listening on " - + simulation.getEventCentral().getLogOutputObservationsCount() + "/" - + simulation.getMotesCount() + " motes)"); - } + setTitle("Log Listener (listening on " + + simulation.getEventCentral().getLogOutputObservationsCount() + " log interfaces)"); } public void closePlugin() {