diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-12 13:56:36 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-04-12 13:56:36 +0000 |
commit | a4b18a0c200b70ad5c57219b3788d2082277f4bd (patch) | |
tree | 70b3863d03a715a88c80925df8dccf045009e821 /src/transport | |
parent | a44571c19eb4989737491601e5656145a8c69b0f (diff) | |
download | gnunet-a4b18a0c200b70ad5c57219b3788d2082277f4bd.tar.gz gnunet-a4b18a0c200b70ad5c57219b3788d2082277f4bd.zip |
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/gnunet-service-transport.c | 5 |
1 files changed, 4 insertions, 1 deletions
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_ | |||
6441 | 6441 | ||
6442 | void ats_calculate_bandwidth_distribution () | 6442 | void ats_calculate_bandwidth_distribution () |
6443 | { | 6443 | { |
6444 | #if HAVE_LIBGLPK | ||
6444 | struct GNUNET_TIME_Absolute start; | 6445 | struct GNUNET_TIME_Absolute start; |
6445 | struct GNUNET_TIME_Relative duration; | 6446 | struct GNUNET_TIME_Relative duration; |
6446 | 6447 | ||
@@ -6459,7 +6460,7 @@ void ats_calculate_bandwidth_distribution () | |||
6459 | else | 6460 | else |
6460 | dur = (int) ats->max_exec_duration.rel_value; | 6461 | dur = (int) ats->max_exec_duration.rel_value; |
6461 | 6462 | ||
6462 | #if HAVE_LIBGLPK | 6463 | |
6463 | 6464 | ||
6464 | start = GNUNET_TIME_absolute_get(); | 6465 | start = GNUNET_TIME_absolute_get(); |
6465 | if ((ats->modified_addr == GNUNET_YES) || (ats->prob==NULL)) | 6466 | if ((ats->modified_addr == GNUNET_YES) || (ats->prob==NULL)) |
@@ -6565,7 +6566,9 @@ void ats_init () | |||
6565 | ats->R = 1.0; | 6566 | ats->R = 1.0; |
6566 | ats->v_b_min = 64000; | 6567 | ats->v_b_min = 64000; |
6567 | ats->v_n_min = 10; | 6568 | ats->v_n_min = 10; |
6569 | #if HAVE_LIBGLPK | ||
6568 | ats->prob = NULL; | 6570 | ats->prob = NULL; |
6571 | #endif | ||
6569 | 6572 | ||
6570 | int c = 0; | 6573 | int c = 0; |
6571 | unsigned long long value; | 6574 | unsigned long long value; |