aboutsummaryrefslogtreecommitdiff
path: root/src/util/load.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/util/load.c')
-rw-r--r--src/util/load.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/util/load.c b/src/util/load.c
index be33ac1af..b7ab01540 100644
--- a/src/util/load.c
+++ b/src/util/load.c
@@ -128,6 +128,21 @@ GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline)
128 128
129 129
130/** 130/**
131 * Change the value by which the load automatically declines.
132 *
133 * @param load load to update
134 * @param autodecline frequency of load decline
135 */
136void
137GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
138 struct GNUNET_TIME_Relative autodecline)
139{
140 internal_update (load);
141 load->autodecline = autodecline;
142}
143
144
145/**
131 * Recalculate our load value. 146 * Recalculate our load value.
132 * 147 *
133 * @param load load to update 148 * @param load load to update