diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-09-24 09:42:22 +0000 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2012-09-24 09:42:22 +0000 |
commit | d06c9779a237eb90ca1bb312bc30f6648d09b523 (patch) | |
tree | fea9129b2e2a4632f62be0766b29b5f8fddc58d3 /reordercap.c | |
parent | 21a21a69942a1a10eaa947250b19b8c15b7b3096 (diff) |
Fix count of out-of-order frames reported at end of run.
svn path=/trunk/; revision=45089
Diffstat (limited to 'reordercap.c')
-rw-r--r-- | reordercap.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/reordercap.c b/reordercap.c index 5873468ba6..c083491654 100644 --- a/reordercap.c +++ b/reordercap.c @@ -176,14 +176,16 @@ static void ReorderListAdd(gint64 offset, guint32 length, newFrameRecord->prev = tmp->prev; /* Its next points to us */ newFrameRecord->prev->next = newFrameRecord; + + /* Inserted after another item */ + DEBUG_PRINT("*** Inc out out of order count\n"); + g_OutOfOrder++; } /* Fix up next item */ newFrameRecord->next = tmp; tmp->prev = newFrameRecord; - g_OutOfOrder++; - return; } @@ -197,6 +199,10 @@ static void ReorderListAdd(gint64 offset, guint32 length, newFrameRecord->next = NULL; g_FrameListTail = newFrameRecord; + /* There were other items but we were earlier than them */ + DEBUG_PRINT("*** Inc out out of order count\n"); + g_OutOfOrder++; + return; } else { |