From 51cbcd9193f3a54898a09b74ee79aade4c62172a Mon Sep 17 00:00:00 2001 From: nifi Date: Thu, 24 Sep 2009 08:56:17 +0000 Subject: [PATCH] minor bug fix: enforce string to avoid merging mote ids --- tools/cooja/java/se/sics/cooja/plugins/RadioLogger.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/RadioLogger.java b/tools/cooja/java/se/sics/cooja/plugins/RadioLogger.java index 9d5190b6d..efdf093bf 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/RadioLogger.java +++ b/tools/cooja/java/se/sics/cooja/plugins/RadioLogger.java @@ -26,7 +26,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: RadioLogger.java,v 1.23 2009/09/17 13:20:48 fros4943 Exp $ + * $Id: RadioLogger.java,v 1.24 2009/09/24 08:56:17 nifi Exp $ */ package se.sics.cooja.plugins; @@ -137,10 +137,10 @@ public class RadioLogger extends VisPlugin { return "-"; } if (dests.length == 1) { - return dests[0].getMote().getID(); + return "" + dests[0].getMote().getID(); } if (dests.length == 2) { - return dests[0].getMote().getID() + ',' + dests[1].getMote().getID(); + return "" + dests[0].getMote().getID() + ',' + dests[1].getMote().getID(); } return "[" + dests.length + " d]"; } else if (col == COLUMN_DATA) { @@ -381,7 +381,7 @@ public class RadioLogger extends VisPlugin { } StringBuilder sb = new StringBuilder(); for (Radio dest: dests) { - sb.append(dest.getMote().getID() + ','); + sb.append(dest.getMote().getID()).append(','); } sb.setLength(sb.length()-1); return sb.toString();