Lines Matching refs:ntokens
363 long ntokens;
367 ntokens = (tv.tv_sec - cur_time.tv_sec)*1000 +
372 if (ntokens < MININTERVAL && in_flight() >= preload)
373 return MININTERVAL-ntokens;
375 ntokens += tokens;
376 if (ntokens > interval*preload)
377 ntokens = interval*preload;
378 if (ntokens < interval)
379 return interval - ntokens;
382 tokens = ntokens - interval;