Ethereal-dev: [Ethereal-dev] [patch] capture dialog with simple histogram

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: "Ulf Lamping" <ulf.lamping@xxxxxx>
Date: Thu, 23 Oct 2003 10:58:49 +0200
Hi List!

I have added a simple histogram output to the capture dialog (the dialog, when the capture is in progress).

In the past, I found it difficult to read the percentage values from this dialog, to get an idea what is going on on the net. When the capture file isn't very large, the percentage values are flickering a lot.

What I have done:
For every row in this dialog, I have inserted a tiny progress bar (between the value and the percentage fields). It will show the percentage as the "progress", e.g.: a percentage of 66,6% will fill the bar to 66,6%.

Example (progress bar emulated by ascii art for this mail):
Total  30  Histogram  100,0%
SCTP   20   ====--     66,6%
TCP    10   ==----     33,3%
UDP     0   ------      0,0%
...

In the total row (the first row), i have avoided the progress bar (and put the label "Histogram" instead), as it will show always 100% and this could confuse the user, as it could be misinterpreted as something like a buffer empty.

I first tried to put the percentage value into this progress bar, but this looks ugly in GTK1 and increases the height of the dialog a lot, so I removed this again.

The patch appended, will work both for GTK 1 and 2. I have tested it on win32, but it should also work on other platforms without modifications.

Beside, that this feature is helpful, it's also nice to look at :-)

Regards, ULFL
______________________________________________________________________________
Bestes Testergebnis: Stiftung Warentest Doppelsieg fur WEB.DE FreeMail
und WEB.DE Club. Nur fuer unsere Nutzer! http://f.web.de/?mc=021182

Attachment: Capture_Histo.diff
Description: Binary data