aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_load_lib.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/include/gnunet_load_lib.h')
-rw-r--r--src/include/gnunet_load_lib.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/src/include/gnunet_load_lib.h b/src/include/gnunet_load_lib.h
index d56522d40..6dfe80cb2 100644
--- a/src/include/gnunet_load_lib.h
+++ b/src/include/gnunet_load_lib.h
@@ -51,8 +51,8 @@ struct GNUNET_LOAD_Value;
51 * frequency, 0-load values will be added to the load 51 * frequency, 0-load values will be added to the load
52 * @return the new load value 52 * @return the new load value
53 */ 53 */
54struct GNUNET_LOAD_Value *GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative 54struct GNUNET_LOAD_Value *
55 autodecline); 55GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative autodecline);
56 56
57 57
58/** 58/**
@@ -61,8 +61,9 @@ struct GNUNET_LOAD_Value *GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative
61 * @param load load to update 61 * @param load load to update
62 * @param autodecline frequency of load decline 62 * @param autodecline frequency of load decline
63 */ 63 */
64void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load, 64void
65 struct GNUNET_TIME_Relative autodecline); 65GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
66 struct GNUNET_TIME_Relative autodecline);
66 67
67 68
68/** 69/**
@@ -82,7 +83,8 @@ void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load,
82 * 100 if the latest updates were so large 83 * 100 if the latest updates were so large
83 * that we could not do proper calculations 84 * that we could not do proper calculations
84 */ 85 */
85double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load); 86double
87GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
86 88
87 89
88/** 90/**
@@ -91,7 +93,8 @@ double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load);
91 * @param load load handle 93 * @param load load handle
92 * @return zero if update was never called 94 * @return zero if update was never called
93 */ 95 */
94double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load); 96double
97GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
95 98
96 99
97/** 100/**
@@ -100,7 +103,8 @@ double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load);
100 * @param load to update 103 * @param load to update
101 * @param data latest measurement value (for example, delay) 104 * @param data latest measurement value (for example, delay)
102 */ 105 */
103void GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data); 106void
107GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data);
104 108
105 109
106#if 0 /* keep Emacsens' auto-indent happy */ 110#if 0 /* keep Emacsens' auto-indent happy */