Bugzilla – Bug 769
Queue::GetTotalReceived{Bytes,Packets}() broken
Last modified: 2010-01-05 15:28:30 UTC
http://mailman.isi.edu/pipermail/ns-developers/2009-December/007144.html --- src/node/queue_orig.cc 2009-12-03 19:38:11.000000000 +0100 +++ src/node/queue.cc 2009-12-03 19:38:38.000000000 +0100 @@ -69,8 +69,12 @@ bool retval = DoEnqueue (p); if (retval) { - m_nBytes += p->GetSize (); + uint32_t size = p->GetSize (); + m_nBytes += size; + m_nTotalReceivedBytes += size; + m_nPackets++; + m_nTotalReceivedPackets++; } return retval; }
Craig, can you please take a look at this small patch and give it +1 or ask for corrections. Thanks
Fixed changeset 5af362f6434a