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

[altq 86] The calculation of offtime



Hi,
 
In rsvp_cbq.c the offtime is of
 
gtom = pow(g, (double)minburst);
 if (minburst)
  offtime = cptime * (1.0 + 1.0/(1.0 - g) * (1.0 - gtom) / gtom);
 else
  offtime = cptime;
but as the paper said, it should be
gtom = pow(g, (double)minburst-1);
 if (minburst)
  offtime = cptime * (1.0 + 1.0/(1.0 - g) * (1.0 - gtom) / gtom);
 else
  offtime = cptime;
 
Could anyone tell me hat's wrong with it? Thanks!
 
Lin Su-Mei