Function approaching_limit
Source pub fn approaching_limit(count: usize, limit: usize) -> bool
Expand description
Check if a count is approaching a limit (>80%).
§Arguments
count - The current count
limit - The maximum limit
§Returns
true if count > 80% of limit