aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_load_lib.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2010-10-20 21:53:29 +0000
committerChristian Grothoff <christian@grothoff.org>2010-10-20 21:53:29 +0000
commitfa4128cdbd9857b3446c1fe337c0796eaba76f18 (patch)
treec668846a2001418254f613077e34923a6b50f53f /src/include/gnunet_load_lib.h
parenta38a2fd6598a4b774a04818a521fb70c6566c387 (diff)
downloadgnunet-fa4128cdbd9857b3446c1fe337c0796eaba76f18.tar.gz
gnunet-fa4128cdbd9857b3446c1fe337c0796eaba76f18.zip
improved load API to hopefully fix fs load mgmt troubles
Diffstat (limited to 'src/include/gnunet_load_lib.h')
-rw-r--r--src/include/gnunet_load_lib.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/include/gnunet_load_lib.h b/src/include/gnunet_load_lib.h
index 7af00ccd3..7d3ec353e 100644
--- a/src/include/gnunet_load_lib.h
+++ b/src/include/gnunet_load_lib.h
@@ -46,10 +46,13 @@ struct GNUNET_LOAD_Value;
46/** 46/**
47 * Create a new load value. 47 * Create a new load value.
48 * 48 *
49 * @param autodecline speed at which this value should automatically
50 * decline in the absence of external events; at the given
51 * frequency, 0-load values will be added to the load
49 * @return the new load value 52 * @return the new load value
50 */ 53 */
51struct GNUNET_LOAD_Value * 54struct GNUNET_LOAD_Value *
52GNUNET_LOAD_value_init (void); 55GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline);
53 56
54 57
55/** 58/**
@@ -70,7 +73,7 @@ GNUNET_LOAD_value_init (void);
70 * that we could not do proper calculations 73 * that we could not do proper calculations
71 */ 74 */
72double 75double
73GNUNET_LOAD_get_load (const struct GNUNET_LOAD_Value *load); 76GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
74 77
75 78
76/** 79/**
@@ -80,7 +83,7 @@ GNUNET_LOAD_get_load (const struct GNUNET_LOAD_Value *load);
80 * @return zero if update was never called 83 * @return zero if update was never called
81 */ 84 */
82double 85double
83GNUNET_LOAD_get_average (const struct GNUNET_LOAD_Value *load); 86GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
84 87
85 88
86/** 89/**