- improved error logging
[oweals/gnunet.git] / src / ats / gnunet-service-ats_math.c
index 220fe522b58ecf9b7ae21f60b5adf1dab6d5cd70..97fc54d516a2e5580a47607681037b108e82f5f3 100644 (file)
@@ -19,8 +19,8 @@
 */
 
 /**
- * @file transport/gnunet-service-transport_ats.c
- * @brief automatic transport selection
+ * @file ats/gnunet-service-ats_math.c
+ * @brief automatic transport selection, LP code
  * @author Matthias Wachs
  *
  */
@@ -506,15 +506,13 @@ _dummy2 ()
 
 /**
  * Initialize ATS
- * @param cfg configuration handle to retrieve configuration (to be removed)
  * @return
  */
-
 struct ATS_Handle *
 ats_init (double D, double U, double R, int v_b_min, int v_n_min,
           int max_iterations, struct GNUNET_TIME_Relative max_duration,
-          GNUNET_TRANSPORT_ATS_AddressNotification address_not,
-          GNUNET_TRANSPORT_ATS_ResultCallback res_cb)
+          GNUNET_ATS_AddressNotification address_not,
+          GNUNET_ATS_ResultCallback res_cb)
 {
   struct ATS_Handle *ats = NULL;
 
@@ -850,7 +848,7 @@ ats_create_problem (struct ATS_Handle *ats, struct ATS_internals *stat,
     {
       ia[array_index] = row_index;
       ja[array_index] = c2;
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DELAY)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -866,7 +864,7 @@ ats_create_problem (struct ATS_Handle *ats, struct ATS_internals *stat,
         value = 100.0 / ((v0 + 2 * v1 + 3 * v2) / 6.0);
         value = 1;
       }
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DISTANCE)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -1243,7 +1241,7 @@ ats_update_problem_qm (struct ATS_Handle *ats)
       GNUNET_assert (ats->mechanisms[c2].addr != NULL);
       GNUNET_assert (ats->mechanisms[c2].peer != NULL);
 
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DELAY)
       {
         double v0 = 0, v1 = 0, v2 = 0;
 
@@ -1259,7 +1257,7 @@ ats_update_problem_qm (struct ATS_Handle *ats)
         value = 100.0 / ((v0 + 2 * v1 + 3 * v2) / 6.0);
         //value = 1;
       }
-      if (qm[c - 1].atis_index == GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
+      if (qm[c - 1].atis_index == GNUNET_ATS_QUALITY_NET_DISTANCE)
       {
         double v0 = 0, v1 = 0, v2 = 0;