Commit 48c6bbea authored by 's avatar
Browse files

Fixed first packet issue (gap measurement) and verbose output.


git-svn-id: file:///home/svn/mapi/trunk@1402 8d5bb341-7cf1-0310-8cf6-ba355fef3186
parent a7c28b6d
......@@ -27,7 +27,7 @@
// informations about received packets
//#define __BURST_DEBUG
// informations about manipulation with received packets
#define __BURST_VERBOSE
//#define __BURST_VERBOSE
// print lag/lead for each packets (if you need some stats...)
//#define __BURST_DEBUG_LAG_LEAD
// print maximal/minimal lag/lead (if you need some stats...)
......@@ -505,6 +505,8 @@ printf("process: save [%d / %d] += %lu B (= %lu B), += %lu pkts (= %lu pkts), +1
// NEW: store inter-burst gap size too
if(internal_data_ptr->last_pkt_wlen) { // if not first packet
if(pkt_head->ts > pkt_ts_ull_exa) {
gap_len_frac = pkt_head->ts - pkt_ts_ull_exa;
ULLTOD(gap_len_frac, gap_len_s);
......@@ -523,6 +525,7 @@ printf("process: save [%d / %d] += %lu B (= %lu B), += %lu pkts (= %lu pkts), +1
((burst_category_t *)instance->result.data)[cat].gap_bytes += gap_len_b;
if(internal_data_ptr->burst_bytes > 0) // not the very first packet
((burst_category_t *)instance->result.data)[cat].gaps++;
}
}
else { // if one bursts, show goes on
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment