On Mon, Jan 08, 2007 at 02:03:49PM -0800, Stephen Fisher wrote:
> On Fri, Jan 05, 2007 at 03:26:02PM +0100, To Van Phu wrote:
> >
> > Is it the time elapsed since the previous packet?
>
> Yes. This is the relevent code from gtk/tcp_graph.c in function
> tput_make_elmtlist():
>
> double time = tmp->rel_secs + tmp->rel_usecs/1000000.0;
> dtime = time - (oldest->rel_secs + oldest->rel_usecs/1000000.0);
>
> sum += tmp->th_seglen;
> tput = sum / dtime;
Let me correct myself: the use of the name oldest sounds like it uses
the first packet's time delta to the current packet. I haven't looked
very closely at all of the code though sorry.
Steve