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. | |
Functions | |
| struct GNUNET_LOAD_Value * | GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline) |
| Create a new load value. | |
| 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. | |
| double | GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load) |
| Get the current load. | |
| double | GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load) |
| Get the average value given to update so far. | |
| void | GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data) |
| Update the current load. | |
Functions related to load calculations.
Definition in file gnunet_load_lib.h.