diff options
author | Omar Tarabai <tarabai@devegypt.com> | 2014-08-15 18:44:06 +0000 |
---|---|---|
committer | Omar Tarabai <tarabai@devegypt.com> | 2014-08-15 18:44:06 +0000 |
commit | 34e40e006af57ec7cb7c69acf0273321550117dd (patch) | |
tree | 1f4a234675455ab8306dcdfdc8bbc98a3979c6d7 /src/include/gnunet_sensor_util_lib.h | |
parent | fd6ca7a4a3366b3166bc7c4c5e02af6f11c917ef (diff) | |
download | gnunet-34e40e006af57ec7cb7c69acf0273321550117dd.tar.gz gnunet-34e40e006af57ec7cb7c69acf0273321550117dd.zip |
sensor: test case + fixes
Diffstat (limited to 'src/include/gnunet_sensor_util_lib.h')
-rw-r--r-- | src/include/gnunet_sensor_util_lib.h | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/src/include/gnunet_sensor_util_lib.h b/src/include/gnunet_sensor_util_lib.h index 87ae564fa..897fbbaad 100644 --- a/src/include/gnunet_sensor_util_lib.h +++ b/src/include/gnunet_sensor_util_lib.h | |||
@@ -189,6 +189,26 @@ struct GNUNET_SENSOR_SensorInfo | |||
189 | 189 | ||
190 | }; | 190 | }; |
191 | 191 | ||
192 | /** | ||
193 | * Anomaly report received and stored by sensor dashboard. | ||
194 | * Sensor name and peer id are not included because they are part of the | ||
195 | * peerstore key. | ||
196 | */ | ||
197 | struct GNUNET_SENSOR_DashboardAnomalyEntry | ||
198 | { | ||
199 | |||
200 | /** | ||
201 | * New anomaly status | ||
202 | */ | ||
203 | uint16_t anomalous; | ||
204 | |||
205 | /** | ||
206 | * Percentage of neighbors reported the same anomaly | ||
207 | */ | ||
208 | float anomalous_neighbors; | ||
209 | |||
210 | }; | ||
211 | |||
192 | GNUNET_NETWORK_STRUCT_BEGIN | 212 | GNUNET_NETWORK_STRUCT_BEGIN |
193 | 213 | ||
194 | /** | 214 | /** |