Return the capacity of a leaky bucket as the rounded‐down product of the specified drainRate by the specified timeWindow. If the result evaluates to 0, return 1. The behavior is undefined unless the product of drainRate and timeWindow can be represented by a 64‐bit unsigned integral type.
Synopsis
Declared in <balb_leakybucket.h>
static
bsls::Types::Uint64
calculateCapacity(
bsls::Types::Uint64 drainRate,
bsls::TimeInterval const& timeWindow);
Created with MrDocs