Searched refs:burst_level (Results 1 – 3 of 3) sorted by relevance
51 bkt->burst_level = MAX(bkt->burst_level - leak, 0); in throttle_leak_bucket()128 extra = bkt->burst_level - burst_bucket_size; in throttle_compute_wait()407 ts->cfg.buckets[i].burst_level = 0; in throttle_config()496 bkt->burst_level += size; in throttle_account()502 bkt->burst_level += units; in throttle_account()
69 bkt.burst_level = 6; in test_leak_bucket()73 g_assert(double_cmp(bkt.burst_level, 3.5)); in test_leak_bucket()76 g_assert(double_cmp(bkt.burst_level, 1)); in test_leak_bucket()79 g_assert(double_cmp(bkt.burst_level, 0)); in test_leak_bucket()82 g_assert(double_cmp(bkt.burst_level, 0)); in test_leak_bucket()132 bkt.burst_level += units; in test_compute_wait()135 g_assert(double_cmp(bkt.burst_level, 0)); in test_compute_wait()
83 double burst_level; /* bucket level in units (for computing bursts) */ member