~ubuntu-branches/ubuntu/precise/iproute/precise

« back to all changes in this revision

Viewing changes to tc/tc_estimator.c

  • Committer: Bazaar Package Importer
  • Author(s): Fabio M. Di Nitto
  • Date: 2007-06-11 13:31:12 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070611133112-0rtfv32yfs8loo0r
Tags: 20070313-1ubuntu1
* Merge from debian unstable, remaining changes:
  - linux-kernel-headers -> linux-libc-dev B-D rename.
  - MAX_ROUNDS patch to ip/ipaddress.c
  - Ubuntu maintainer foobar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est)
27
27
{
28
28
        for (est->interval=0; est->interval<=5; est->interval++) {
29
 
                if (A <= (1<<est->interval)*(1000000/4))
 
29
                if (A <= (1<<est->interval)*(TIME_UNITS_PER_SEC/4))
30
30
                        break;
31
31
        }
32
32
        if (est->interval > 5)