diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2011-05-31 14:54:49 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2011-05-31 14:54:49 +0000 |
commit | 7131d326db99ed34b52cdb1e665f6f7994c877d2 (patch) | |
tree | cf9af0d953a100b1fa84cde944feeaf60aee9add | |
parent | 0db84710c3f580e6db171a66d34bbe4b54fc1267 (diff) | |
download | gnunet-7131d326db99ed34b52cdb1e665f6f7994c877d2.tar.gz gnunet-7131d326db99ed34b52cdb1e665f6f7994c877d2.zip |
-rw-r--r-- | src/transport/gnunet-service-transport.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index 7c4b3488a..f120c6e19 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -6133,6 +6133,9 @@ static int ats_evaluate_results (int result, int solution, char * problem) | |||
6133 | #endif | 6133 | #endif |
6134 | 6134 | ||
6135 | switch (result) { | 6135 | switch (result) { |
6136 | case GNUNET_SYSERR : /* GNUNET problem, not GLPK related */ | ||
6137 | GNUNET_log (error_kind, "%s , GLPK solving not executed\n", problem); | ||
6138 | break; | ||
6136 | case GLP_ESTOP : /* search terminated by application */ | 6139 | case GLP_ESTOP : /* search terminated by application */ |
6137 | GNUNET_log (error_kind, "%s , Search terminated by application\n", problem); | 6140 | GNUNET_log (error_kind, "%s , Search terminated by application\n", problem); |
6138 | break; | 6141 | break; |
@@ -6191,12 +6194,11 @@ return cont; | |||
6191 | 6194 | ||
6192 | static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsigned int c_peers, unsigned int c_mechs, struct ATS_stat *stat) | 6195 | static void ats_solve_problem (unsigned int max_it, unsigned int max_dur, unsigned int c_peers, unsigned int c_mechs, struct ATS_stat *stat) |
6193 | { | 6196 | { |
6194 | int result; | 6197 | int result = GNUNET_SYSERR; |
6195 | int lp_solution; | 6198 | int lp_solution = GNUNET_SYSERR; |
6196 | int mlp_solution; | 6199 | int mlp_solution = GNUNET_SYSERR; |
6197 | 6200 | ||
6198 | // Solving simplex | 6201 | // Solving simplex |
6199 | |||
6200 | glp_smcp opt_lp; | 6202 | glp_smcp opt_lp; |
6201 | glp_init_smcp(&opt_lp); | 6203 | glp_init_smcp(&opt_lp); |
6202 | #if VERBOSE_ATS | 6204 | #if VERBOSE_ATS |