diff options
Diffstat (limited to 'dev')
-rw-r--r-- | dev/etherlink.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dev/etherlink.cc b/dev/etherlink.cc index e0f45c3bf..f68332926 100644 --- a/dev/etherlink.cc +++ b/dev/etherlink.cc @@ -162,7 +162,7 @@ EtherLink::Link::transmit(PacketPtr pkt) Tick delay = (Tick)ceil(((double)pkt->length * ticksPerByte) + 1.0); if (delayVar != 0) { Random<Tick> var; - delay += var.uniform(delayVar); + delay += var.uniform(0, delayVar); } DPRINTF(Ethernet, "scheduling packet: delay=%d, (rate=%f)\n", delay, ticksPerByte); |