gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r26202 - gnunet/src/ats


From: gnunet
Subject: [GNUnet-SVN] r26202 - gnunet/src/ats
Date: Mon, 25 Feb 2013 15:58:33 +0100

Author: wachs
Date: 2013-02-25 15:58:33 +0100 (Mon, 25 Feb 2013)
New Revision: 26202

Modified:
   gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
   gnunet/src/ats/test_ats_mlp.c
Log:
old code


Modified: gnunet/src/ats/gnunet-service-ats_addresses_mlp.h
===================================================================
--- gnunet/src/ats/gnunet-service-ats_addresses_mlp.h   2013-02-25 14:53:26 UTC 
(rev 26201)
+++ gnunet/src/ats/gnunet-service-ats_addresses_mlp.h   2013-02-25 14:58:33 UTC 
(rev 26202)
@@ -76,16 +76,8 @@
 #endif
 };
 
-struct GAS_MLP_SolutionContext
-{
-  int lp_result;
-  int mlp_result;
-  struct GNUNET_TIME_Relative lp_duration;
-  struct GNUNET_TIME_Relative mlp_duration;
-};
 
 
-
 struct MLP_Problem
 {
   /**
@@ -255,84 +247,12 @@
    */
   int mlp_prob_changed;
 
-
   /**
    * Solve the problem automatically when updates occur?
    * Default: GNUNET_YES
    * Can be disabled for test and measurements
    */
   int mlp_auto_solve;
-
-
-#if 0
-  /**
-   * Interval between scheduled problem solving
-   */
-  struct GNUNET_TIME_Relative exec_interval;
-
-  /**
-   * Maximum execution time per problem solving
-   */
-  struct GNUNET_TIME_Relative max_exec_duration;
-
-  /**
-   * Maximum number of LP iterations per problem solving
-   */
-  unsigned int max_iterations;
-
-
-  /**
-   * Is a solution attemp running?
-   */
-  int semaphore;
-
-  /* state information */
-
-  /**
-   * Do we need to use the LP presolver?
-   *
-   * If the problem addresses were added or removed and the last basis was we
-   * need to use the presolver.
-   * presolver_required == GNUNET_YES
-   *
-   * If values were modified, we can reuse a valid basis
-   * presolver_required == GNUNET_NO
-   */
-  int presolver_required;
-
-  /* statistics */
-
-  /**
-   * Time of last execution
-   */
-  struct GNUNET_TIME_Absolute last_execution;
-
-
-  /**
-   * How often was the LP problem solved
-   */
-  unsigned int lp_solved;
-
-  /**
-   * total duration of all lp solver executions
-   */
-  uint64_t lp_total_duration;
-
-  /**
-   * How often was the MLP problem solved
-   */
-  unsigned int mlp_solved;
-
-  /**
-   * total duration of all mlp solver executions
-   */
-  uint64_t mlp_total_duration;
-
-  /* Information about the problem */
-
-  struct ATS_Peer *peer_head;
-  struct ATS_Peer *peer_tail;
-#endif
 };
 
 

Modified: gnunet/src/ats/test_ats_mlp.c
===================================================================
--- gnunet/src/ats/test_ats_mlp.c       2013-02-25 14:53:26 UTC (rev 26201)
+++ gnunet/src/ats/test_ats_mlp.c       2013-02-25 14:58:33 UTC (rev 26202)
@@ -237,7 +237,6 @@
   ats.value = htonl (GNUNET_ATS_NET_WAN);
   GAS_mlp_address_update (mlp, addresses, address[0], 1, GNUNET_NO, &ats, 1);
 
-
   /* Retrieving preferred address for peer and wait for callback */
   GAS_mlp_get_preferred_address (mlp, addresses, &p[0]);
 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]