From 646fb6fec08ad53a87112b3dc32ec93ea542b67b Mon Sep 17 00:00:00 2001 From: fros4943 Date: Mon, 8 Jun 2009 12:42:58 +0000 Subject: [PATCH] bug fix: delay field is in milliseconds, not microseconds --- .../cooja/java/se/sics/cooja/plugins/DGRMConfigurator.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/cooja/java/se/sics/cooja/plugins/DGRMConfigurator.java b/tools/cooja/java/se/sics/cooja/plugins/DGRMConfigurator.java index 618603c42..24f4b5189 100644 --- a/tools/cooja/java/se/sics/cooja/plugins/DGRMConfigurator.java +++ b/tools/cooja/java/se/sics/cooja/plugins/DGRMConfigurator.java @@ -144,6 +144,7 @@ public class DGRMConfigurator extends VisPlugin { add(BorderLayout.SOUTH, button); model.fireTableDataChanged(); + setSize(400, 300); } private void doAddLink() { @@ -254,7 +255,7 @@ public class DGRMConfigurator extends VisPlugin { return edge.successRatio; } if (column == IDX_DELAY) { - return edge.delay; + return edge.delay / Simulation.MILLISECOND; } if (column == IDX_DEL) { return new Boolean(false); @@ -282,8 +283,8 @@ public class DGRMConfigurator extends VisPlugin { return; } if (column == IDX_DELAY) { - /* Propagation delay */ - edge.delay = ((Number)value).longValue(); + /* Propagation delay (ms) */ + edge.delay = ((Number)value).longValue() * Simulation.MILLISECOND; radioMedium.setEdgesDirty(); return; }