Functions related to load calculations. More...
Go to the source code of this file.
Macros | |
#define | GNUNET_LOAD_value_free(lv) GNUNET_free (lv) |
Free a load value. More... | |
Functions | |
struct GNUNET_LOAD_Value * | GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline) |
Create a new load value. More... | |
void | GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load, struct GNUNET_TIME_Relative autodecline) |
Change the value by which the load automatically declines. More... | |
double | GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load) |
Get the current load. More... | |
double | GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load) |
Get the average value given to update so far. More... | |
void | GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data) |
Update the current load. More... | |
Functions related to load calculations.
Definition in file gnunet_load_lib.h.