Wireshark-bugs: [Wireshark-bugs] [Bug 8066] tshark -z io, stat reports bad byte counts if filter
Date: Mon, 10 Dec 2012 15:02:08 +0000

changed bug 8066

What Removed Added
Status UNCONFIRMED CONFIRMED
CC   mmann78@netscape.net
Ever confirmed   1

Comment # 3 on bug 8066 from
One of either two problems:

1. Number of rows displayed is miscalculated.  ui\cli\tap-iostat.c (~line 927
in SVN) shows:

num_rows = (int)(duration/interval) + (((duration%interval+500000)/1000000) > 0
? 1 : 0);

I don't think the remainder/roundup calculation is correct.  For this
particular test case (with filters used in comment #0), it incorrectly rounds
up.

2. Due to the "roundup" from #1 above, the output loop runs out of "items", but
the "printf format" in use requires 2 parameters, not 1.  Wasn't sure if
"padding" the printf statement with an extra argument (0) to account for
CALC_TYPE_FRAMES_AND_BYTES format would work on all platforms.


You are receiving this mail because:
  • You are watching all bug changes.