doxygen
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 15 Mar 2013 09:01:21 +0000 (09:01 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 15 Mar 2013 09:01:21 +0000 (09:01 +0000)
src/ats/gnunet-service-ats_addresses.c
src/ats/gnunet-service-ats_addresses_mlp.c
src/ats/gnunet-service-ats_addresses_simplistic.c

index a88ff5681668ff0c27bc5c033316728da445c666..05ff2bc9d6ef0a8236c42ee766d2eab735a9825a 100644 (file)
@@ -81,8 +81,8 @@
  *    is loaded from ats configuration during initialization. This quota defines
  *    to total amount of inbound and outbound traffic allowed for a specific
  *    network. The configuration values used are in section ats:
- *      * <NETWORK>_QUOTA_IN = <value>
- *      * <NETWORK>_QUOTA_IN = <value>
+ *      * "NETWORK"_QUOTA_IN = <value>
+ *      * "NETWORK"_QUOTA_IN = <value>
  *
  *    You can specify quotas by setting the <value> to a:
  *      * unrestricted: unlimited
index a7098159468443fca64ae272f2ae6ff1c4cf6c01..3a4e14a32c7414acfeaaf66f8f6f522f99bfeb36 100644 (file)
@@ -816,10 +816,12 @@ mlp_solve_mlp_problem (struct GAS_MLP_Handle *mlp)
 
 
 /**
- * Solves the MLP problem
+ * Propagates the results when MLP problem was solved
  *
- * @param mlp the MLP Handle
- * @return GNUNET_OK if could be solved, GNUNET_SYSERR on failure
+ * @param cls the MLP handle
+ * @param key the peer identity
+ * @param value the address
+ * @return GNUNET_OK to continue
  */
 int
 mlp_propagate_results (void *cls, const struct GNUNET_HashCode *key, void *value)
index d88aa483867cbd59fe885075ae56a9910530d758..7450412c995e0d91e2b4461402336a21bef69c8d 100644 (file)
@@ -514,7 +514,6 @@ GAS_simplistic_done (void *solver)
 /**
  * Test if bandwidth is available in this network
  *
- * @param s the solver handle
  * @param net the network type to update
  * @return GNUNET_YES or GNUNET_NO
  */
@@ -1278,7 +1277,7 @@ recalculate_preferences (struct PreferencePeer *p)
    *     f_k_p_i_ *  / f_t
    *     f_k_p_i_rel = [1..2], default 1.0
    *    }
-   *    f_p_i_rel = sum (f_k_p_i_rel) / #k
+   *    f_p_i_rel = sum (f_k_p_i_rel) / count(k)
    * }
    *
    **/
@@ -1456,7 +1455,7 @@ GAS_simplistic_address_change_preference (void *solver,
                                    void *client,
                                    const struct GNUNET_PeerIdentity *peer,
                                    enum GNUNET_ATS_PreferenceKind kind,
-                                   float score_f)
+                                   float score)
 {
   static struct GNUNET_TIME_Absolute next_update;
   struct GAS_SIMPLISTIC_Handle *s = solver;
@@ -1472,7 +1471,7 @@ GAS_simplistic_address_change_preference (void *solver,
                                 client,
                                 GNUNET_i2s (peer),
                                 GNUNET_ATS_print_preference_type (kind),
-                                score_f);
+                                score);
 
   if (kind >= GNUNET_ATS_PreferenceCount)
   {
@@ -1518,7 +1517,7 @@ GAS_simplistic_address_change_preference (void *solver,
       GNUNET_CONTAINER_DLL_insert (c_cur->p_head, c_cur->p_tail, p_cur);
   }
 
-  update_preference (p_cur, kind, score_f);
+  update_preference (p_cur, kind, score);
 
   /* FIXME: We should update quotas if UPDATE_INTERVAL is reached */
   if (GNUNET_TIME_absolute_get().abs_value > next_update.abs_value)