ats_ril: - removed some redundantly saved plugin environment attributes
[oweals/gnunet.git] / src / ats / gnunet-service-ats_normalization.h
index 1bced55e132b1a27895d2d590ae2919d12ef3dfe..1f0d081d4cd810f6399ac45f95bbb2337d64444c 100644 (file)
@@ -27,7 +27,7 @@
 #include "platform.h"
 #include "gnunet_ats_service.h"
 
-#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1)
+#define PREF_AGING_INTERVAL GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 10)
 #define PREF_AGING_FACTOR 0.95
 #define PREF_EPSILON 0.1
 
 
 typedef void
 (*GAS_Normalization_preference_changed_cb) (void *cls,
-                                                                                                                                                                               const struct GNUNET_PeerIdentity *peer,
-                                                                                                                                                                               enum GNUNET_ATS_PreferenceKind kind,
-                                                                                                                                                                               double pref_rel);
+    const struct GNUNET_PeerIdentity *peer,
+    enum GNUNET_ATS_PreferenceKind kind,
+    double pref_rel);
 
 typedef void
 (*GAS_Normalization_property_changed_cb) (void *cls,
-                                                                                                                                                                struct ATS_Address *peer,
-                                                                                                                                                                uint32_t type,
-                                                                                                                                                                double prop_rel);
+    struct ATS_Address *peer,
+    uint32_t type,
+    double prop_rel);
 
 /**
  * Get the normalized preference values for a specific peer
  *
- * @param id the peer
- * @return pointer to the values, can be indexed with GNUNET_ATS_PreferenceKind, NULL if peer does not exist
+ * @param id the peer @return pointer to the values, can be indexed
+ * with GNUNET_ATS_PreferenceKind, NULL if peer does not exist
  */
 const double *
 GAS_normalization_get_preferences (const struct GNUNET_PeerIdentity *id);
@@ -79,9 +79,9 @@ GAS_normalization_get_properties (struct ATS_Address *address);
  */
 void
 GAS_normalization_normalize_preference (void *src,
-                                        const struct GNUNET_PeerIdentity *peer,
-                                        enum GNUNET_ATS_PreferenceKind kind,
-                                        float score_abs);
+                                       const struct GNUNET_PeerIdentity *peer,
+                                       enum GNUNET_ATS_PreferenceKind kind,
+                                       float score_abs);
 
 /**
  * Update and normalize a atsi performance information
@@ -92,10 +92,10 @@ GAS_normalization_normalize_preference (void *src,
  * @param atsi_count the number of atsi information in the array
  */
 void
-GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addresses,
-                                                                                                                                                       struct ATS_Address *address,
-                                                                                                                                                       const struct GNUNET_ATS_Information *atsi,
-                                                                                                                                                       uint32_t atsi_count);
+GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiPeerMap *addresses,
+                                     struct ATS_Address *address,
+                                     const struct GNUNET_ATS_Information *atsi,
+                                     uint32_t atsi_count);
 
 
 /**
@@ -108,9 +108,9 @@ GAS_normalization_normalize_property (struct GNUNET_CONTAINER_MultiHashMap *addr
  */
 void
 GAS_normalization_start (GAS_Normalization_preference_changed_cb pref_ch_cb,
-               void *pref_ch_cb_cls,
-               GAS_Normalization_property_changed_cb property_ch_cb,
-               void *property_ch_cb_cls);
+                        void *pref_ch_cb_cls,
+                        GAS_Normalization_property_changed_cb property_ch_cb,
+                        void *property_ch_cb_cls);
 
 
 /**