35#ifndef GNUNET_LOAD_LIB_H
36#define GNUNET_LOAD_LIB_H
83#define GNUNET_LOAD_value_free(lv) GNUNET_free (lv)
static char * data
The data to insert into the dht.
static void load()
Load persistent values from disk.
commonly used definitions; globals in this file are exempt from the rule that the module name ("commo...
Functions related to time.
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_average(struct GNUNET_LOAD_Value *load)
Get the average value given to update so far.
struct GNUNET_LOAD_Value * GNUNET_LOAD_value_init(struct GNUNET_TIME_Relative autodecline)
Create a new load value.
void GNUNET_LOAD_update(struct GNUNET_LOAD_Value *load, uint64_t data)
Update the current load.
double GNUNET_LOAD_get_load(struct GNUNET_LOAD_Value *load)
Get the current load.
Values we track for load calculations.
struct GNUNET_TIME_Relative autodecline
How fast should the load decline if no values are added?
Time for relative time used by GNUnet, in microseconds.