From a4b18a0c200b70ad5c57219b3788d2082277f4bd Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Tue, 12 Apr 2011 13:56:36 +0000 Subject: [PATCH] --- src/transport/gnunet-service-transport.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index e9d84127b..3840f07bc 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c @@ -6441,6 +6441,7 @@ static int ats_create_problem (double D, double U, double R, int v_b_min, int v_ void ats_calculate_bandwidth_distribution () { +#if HAVE_LIBGLPK struct GNUNET_TIME_Absolute start; struct GNUNET_TIME_Relative duration; @@ -6459,7 +6460,7 @@ void ats_calculate_bandwidth_distribution () 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)) @@ -6565,7 +6566,9 @@ void ats_init () ats->R = 1.0; ats->v_b_min = 64000; ats->v_n_min = 10; +#if HAVE_LIBGLPK ats->prob = NULL; +#endif int c = 0; unsigned long long value; -- 2.25.1