delay bug
authorGustavo J. A. M. Carneiro <gjc@inescporto.pt>
Wed Apr 29 15:26:51 2009 +0100 (9 months ago)
changeset 3933b4f9526aa79d
parent 3932 e84840d98cd2
child 3934 75ef91d7fc6f
delay bug
src/contrib/flow-monitor/flow-monitor.cc
src/contrib/flow-monitor/flow-monitor.h
     1.1 --- a/src/contrib/flow-monitor/flow-monitor.cc	Wed Apr 29 14:41:28 2009 +0100
     1.2 +++ b/src/contrib/flow-monitor/flow-monitor.cc	Wed Apr 29 15:26:51 2009 +0100
     1.3 @@ -128,7 +128,7 @@
     1.4        return;
     1.5      }
     1.6  
     1.7 -  Time delay = (tracked->second.firstSeenTime - Simulator::Now ());
     1.8 +  Time delay = (Simulator::Now () - tracked->second.firstSeenTime);
     1.9    probe->AddPacketStats (flowId, packetSize, delay);
    1.10  
    1.11    FlowStats &stats = GetStatsForFlow (flowId);
     2.1 --- a/src/contrib/flow-monitor/flow-monitor.h	Wed Apr 29 14:41:28 2009 +0100
     2.2 +++ b/src/contrib/flow-monitor/flow-monitor.h	Wed Apr 29 15:26:51 2009 +0100
     2.3 @@ -45,7 +45,7 @@
     2.4      uint32_t txPackets;
     2.5      uint32_t rxPackets;
     2.6      uint32_t lostPackets;
     2.7 -    uint32_t timesForwarded; // number of times a packet was forwarded, summed for all packets
     2.8 +    uint32_t timesForwarded; // number of times a packet was forwarded, summed for all received packets
     2.9    };
    2.10  
    2.11    // --- basic methods ---