Ticket #18: patch.ticket18.r6944.diff

File patch.ticket18.r6944.diff, 992 bytes (added by robin, 2 years ago)
  • src/PktSrc.cc

     
    329330                s->received = s->dropped = s->link = 0; 
    330331                } 
    331332 
    332 #ifdef HAVE_LINUX 
    333         // Linux clears its counters each time. 
    334333        s->received = stats.received; 
    335         s->dropped = stats.dropped + pstat.ps_drop; 
    336         s->link = 0; // not available 
    337 #else 
    338         // Default assumes FreeBSD's semantics. 
    339         s->received = stats.received; 
    340334        s->dropped = pstat.ps_drop; 
    341335        s->link = pstat.ps_recv; 
    342 #endif 
    343336 
    344337        if ( pseudo_realtime ) 
    345338                s->dropped = 0; 
  • CHANGES.features

     
    3535 
    3636  $Revisions: r6943 
    3737 
     38- Fix for #18. 
     39 
     40  Status: Under test 
     41 
     42  $Revisions: r6944 
     43 
    3844################ For local use only (not need to merge into trunk). 
    3945 
    4046- Including SVN revision number into version message.