bug fix: delay field is in milliseconds, not microseconds

This commit is contained in:
fros4943 2009-06-08 12:42:58 +00:00
parent 24f00bce76
commit 646fb6fec0

View File

@ -144,6 +144,7 @@ public class DGRMConfigurator extends VisPlugin {
add(BorderLayout.SOUTH, button); add(BorderLayout.SOUTH, button);
model.fireTableDataChanged(); model.fireTableDataChanged();
setSize(400, 300);
} }
private void doAddLink() { private void doAddLink() {
@ -254,7 +255,7 @@ public class DGRMConfigurator extends VisPlugin {
return edge.successRatio; return edge.successRatio;
} }
if (column == IDX_DELAY) { if (column == IDX_DELAY) {
return edge.delay; return edge.delay / Simulation.MILLISECOND;
} }
if (column == IDX_DEL) { if (column == IDX_DEL) {
return new Boolean(false); return new Boolean(false);
@ -282,8 +283,8 @@ public class DGRMConfigurator extends VisPlugin {
return; return;
} }
if (column == IDX_DELAY) { if (column == IDX_DELAY) {
/* Propagation delay */ /* Propagation delay (ms) */
edge.delay = ((Number)value).longValue(); edge.delay = ((Number)value).longValue() * Simulation.MILLISECOND;
radioMedium.setEdgesDirty(); radioMedium.setEdgesDirty();
return; return;
} }