diff options
author | Christian Grothoff <christian@grothoff.org> | 2010-10-21 09:40:33 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2010-10-21 09:40:33 +0000 |
commit | f6a270ac2ec89ed94ef00b97dd2f18b16fd6c306 (patch) | |
tree | a4e04317c29f61f20316f9bf5842951115c6847f /src/util/load.c | |
parent | 783afef9032983d0e0feea713b8d1f114469f7a8 (diff) | |
download | gnunet-f6a270ac2ec89ed94ef00b97dd2f18b16fd6c306.tar.gz gnunet-f6a270ac2ec89ed94ef00b97dd2f18b16fd6c306.zip |
extended load api
Diffstat (limited to 'src/util/load.c')
-rw-r--r-- | src/util/load.c | 15 |
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 | */ | ||
136 | void | ||
137 | GNUNET_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 |