X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=src%2Finclude%2Fgnunet_load_lib.h;h=6dfe80cb24381c3fd2d69e60c3766ba133e0bf34;hb=211fd52268a5ae7856273dd8d8b3b3ed427beadb;hp=7d3ec353e82ed370dd7a1dd741616ed8211fc01d;hpb=fa4128cdbd9857b3446c1fe337c0796eaba76f18;p=oweals%2Fgnunet.git diff --git a/src/include/gnunet_load_lib.h b/src/include/gnunet_load_lib.h index 7d3ec353e..6dfe80cb2 100644 --- a/src/include/gnunet_load_lib.h +++ b/src/include/gnunet_load_lib.h @@ -55,6 +55,17 @@ struct GNUNET_LOAD_Value * GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline); +/** + * Change the value by which the load automatically declines. + * + * @param load load to update + * @param autodecline frequency of load decline + */ +void +GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load, + struct GNUNET_TIME_Relative autodecline); + + /** * Free a load value. * @@ -93,8 +104,7 @@ GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load); * @param data latest measurement value (for example, delay) */ void -GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, - uint64_t data); +GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data); #if 0 /* keep Emacsens' auto-indent happy */