gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] r14963 - gnunet/src/transport


From: gnunet
Subject: [GNUnet-SVN] r14963 - gnunet/src/transport
Date: Tue, 12 Apr 2011 15:55:26 +0200

Author: wachs
Date: 2011-04-12 15:55:26 +0200 (Tue, 12 Apr 2011)
New Revision: 14963

Modified:
   gnunet/src/transport/gnunet-service-transport.c
Log:


Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c     2011-04-12 13:52:08 UTC 
(rev 14962)
+++ gnunet/src/transport/gnunet-service-transport.c     2011-04-12 13:55:26 UTC 
(rev 14963)
@@ -5877,9 +5877,10 @@
 
 static void ats_solve_problem (unsigned int max_it, unsigned int  max_dur, 
unsigned int c_peers, unsigned int  c_mechs, struct ATS_result *res)
 {
+#if HAVE_LIBGLPK
        int result;
        int solution;
-#if HAVE_LIBGLPK
+
        // Solving simplex
        glp_prob *prob = ats->prob;
        /*
@@ -6458,6 +6459,8 @@
        else
                dur = (int) ats->max_exec_duration.rel_value;
 
+#if HAVE_LIBGLPK
+
        start = GNUNET_TIME_absolute_get();
        if ((ats->modified_addr == GNUNET_YES) || (ats->prob==NULL))
        {
@@ -6514,6 +6517,8 @@
        ats->modified_addr = GNUNET_NO;
        ats->modified_resources = GNUNET_NO;
        ats->modified_quality = GNUNET_NO;
+
+#endif
 }
 
 
@@ -6612,13 +6617,13 @@
        if (ats->ats_task != GNUNET_SCHEDULER_NO_TASK)
                GNUNET_SCHEDULER_cancel(ats->ats_task);
        ats->ats_task = GNUNET_SCHEDULER_NO_TASK;
-
+#if HAVE_LIBGLPK
        if (ats->prob != NULL)
        {
                glp_delete_prob(ats->prob);
                ats->prob = NULL;
        }
-
+#endif
        GNUNET_free (ats);
 }
 




reply via email to

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