[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [ns] question about the token-bucket



On Fri, 5 Oct 2001, Yang wrote:

> I have read the tbf.cc and tbf.h recently.
> I have some questions about the variables used in the tbf.cc.
> I found the variable "tok" should be the variable "tokens_" .

void TBF::recv(Packet *p, Handler *)

has 
        double tok;
        tok = getupdatedtokens();

since getupdatedtokens() is designed to return a double which we don't
actually have a use for within the class, since that is already
operating directly on the tokens_ class variable.

I think your suggested change would have exactly zero effect.

L.

<[email protected]>PGP<http://www.ee.surrey.ac.uk/Personal/L.Wood/>