Wireshark-dev: Re: [Wireshark-dev] IO Graphs refresh rate
From: Stephen Fisher <stephentfisher@xxxxxxxxx>
Date: Thu, 18 Jan 2007 16:25:40 -0800
On Tue, Jan 16, 2007 at 12:14:49AM +0100, cskiraly-munka@xxxxxxxxxxxxxxx wrote:

> I was looking for a real-time network traffic graph generator, and the 
> best I've found was of course in Wireshark. Still, it has a refresh 
> rate of 3 seconds on my computer, even if my processor is 95% idle.

> This one line reduced the refresh rate to 1 sec, already much better, 
> but I wasn't able to go below, even if I set the priority higher or 
> the event rate to some milliseconds. I'm sure someone knowing Gtk can 
> achieve much better with the right one line of code. Anyone knows the 
> solution?

The tap extensions update timer is set in main.c, line 2402:

  gtk_timeout_add(3000, (GtkFunction)update_cb,(gpointer)NULL);

The problem I see when running it on my machine with values below 1000ms 
is that the IO graph updates only as fast as the packet list is updated, 
which is about once a second.


Steve