the intent was to always send data if maxbytes is zero.
authorMathieu Lacage <mathieu.lacage@sophia.inria.fr>
Thu, 22 Nov 2007 14:50:59 +0100
changeset 1871 a082b4f3ac92
parent 1870 67b3d2dea3d5
child 1872 4dfb2a623722
child 2160 011b36a7776d
the intent was to always send data if maxbytes is zero.
src/applications/onoff/onoff-application.cc
--- a/src/applications/onoff/onoff-application.cc	Thu Nov 22 10:30:29 2007 +0100
+++ b/src/applications/onoff/onoff-application.cc	Thu Nov 22 14:50:59 2007 +0100
@@ -201,7 +201,7 @@
 {
   NS_LOG_FUNCTION;
 
-  if (m_maxBytes != 0 || m_totBytes < m_maxBytes)
+  if (m_maxBytes == 0 || m_totBytes < m_maxBytes)
     {
       uint32_t bits = m_pktSize * 8 - m_residualBits;
       NS_LOG_LOGIC ("bits = " << bits);