diff --git a/samples/ns-2/simple.tcl.cc b/samples/ns-2/simple.tcl.cc index 40319dacf..45992fc77 100644 --- a/samples/ns-2/simple.tcl.cc +++ b/samples/ns-2/simple.tcl.cc @@ -44,7 +44,7 @@ GenerateTraffic (UdpSocket *socket, uint32_t size) { std::cout << "at=" << Simulator::Now ().GetSeconds () << "s, tx bytes=" << size << std::endl; socket->SendDummy (size); - if (size > 0) + if (size > 50) { Simulator::Schedule (Seconds (0.5), &GenerateTraffic, socket, size - 50); }