ec_throttle_is_exceeded
Name
ec_throttle_is_exceeded — check to see if a throttle is over budget
Synopsis
#include "throttle.h"
| int **ec_throttle_is_exceeded** (
| name, | |
| | now, | |
| | later)
; | |
const char * <var class="pdparam">name</var>
;
struct timeval * <var class="pdparam">now</var>
;
struct timeval * <var class="pdparam">later</var>
;
Description
Note
This reference page was automatically generated from functions found in the header files in the development branch. The function described here may not exist in generally available versions of Momentum, and may change in behavior when it is generally available. Consult your vendor for definitive advice on the use of this function.
check to see if a throttle is over budget
Given the current "now" time value, updates the "later" value to the duration after which the throttle would be under budget.
- name
-
the name of the throttle
- now
-
the current time
- later
-
the when the throttle will be under budget
1 is over budget, 0 if under budget, -1 on error.
**Configuration Change. ** This feature is available starting from Momentum 3.0.8.