[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [ns] Webtraf.cc generates 1 extra object
This should be solved in tomorrow's snapshot.
On Wed, 6 Sep 2000, Nabil Seddigh wrote:
> I've been experimenting with the web traffic model
> in webtraf.cc and it seems to generate an extra
> object - i.e 1 more than what
> is returned by: (int)ceiling(rvPageSize->value).
>
> I have verified this by cross-checking the trace
> file - each page contains one extra request and
> data response flow.
>
> I took a quick look at the code and there seems
> to be a line used as the criteria for deciding when
> to stop generating object requests:
>
> if curObj_ <= nObj_
>
> Looking @ how curObj and nObj are initialized and used,
> I wonder if it shouldn't be:
>
> if curObj_ < nObj_
>
> I tried the fix. It seems to work and doesn't
> seem to have broken anything else ;)
>
> -
> Nabil Seddigh
> [email protected]
>