diff options
Diffstat (limited to 'tc/tc_estimator.c')
-rw-r--r-- | tc/tc_estimator.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tc/tc_estimator.c b/tc/tc_estimator.c index 434db0fe..e559add1 100644 --- a/tc/tc_estimator.c +++ b/tc/tc_estimator.c @@ -26,7 +26,7 @@ int tc_setup_estimator(unsigned A, unsigned time_const, struct tc_estimator *est) { for (est->interval=0; est->interval<=5; est->interval++) { - if (A <= (1<<est->interval)*(1000000/4)) + if (A <= (1<<est->interval)*(TIME_UNITS_PER_SEC/4)) break; } if (est->interval > 5) |