diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-08-16 16:03:20 +0000 |
commit | 16a6919a9f98ee9fa1fee9dd262906c321004a19 (patch) | |
tree | e09d4fe5191dc329b3e1b667f2914f8313bcba59 /src/include/gnunet_load_lib.h | |
parent | 4d7904c62bb867c44e90b8e9f7cdbb4b283abc44 (diff) | |
download | gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.tar.gz gnunet-16a6919a9f98ee9fa1fee9dd262906c321004a19.zip |
even nicer indentation, thanks to LRN's indent patch
Diffstat (limited to 'src/include/gnunet_load_lib.h')
-rw-r--r-- | src/include/gnunet_load_lib.h | 18 |
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 | */ |
54 | struct GNUNET_LOAD_Value *GNUNET_LOAD_value_init (struct GNUNET_TIME_Relative | 54 | struct GNUNET_LOAD_Value * |
55 | autodecline); | 55 | GNUNET_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 | */ |
64 | void GNUNET_LOAD_value_set_decline (struct GNUNET_LOAD_Value *load, | 64 | void |
65 | struct GNUNET_TIME_Relative autodecline); | 65 | GNUNET_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 | */ |
85 | double GNUNET_LOAD_get_load (struct GNUNET_LOAD_Value *load); | 86 | double |
87 | GNUNET_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 | */ |
94 | double GNUNET_LOAD_get_average (struct GNUNET_LOAD_Value *load); | 96 | double |
97 | GNUNET_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 | */ |
103 | void GNUNET_LOAD_update (struct GNUNET_LOAD_Value *load, uint64_t data); | 106 | void |
107 | GNUNET_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 */ |