aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-07-18 14:39:12 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-07-18 14:39:12 +0000
commit555ebf304585fb4ae296cdd9388961d9b303f7e2 (patch)
treed0ce4410720b77936b5a47dc4d9aea02f5a3fdb9 /src
parentd444bbf5a3388a1d7fd0eb433a89d96107bd4b1b (diff)
downloadgnunet-555ebf304585fb4ae296cdd9388961d9b303f7e2.tar.gz
gnunet-555ebf304585fb4ae296cdd9388961d9b303f7e2.zip
Diffstat (limited to 'src')
-rw-r--r--src/transport/test_transport_ats.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/test_transport_ats.c b/src/transport/test_transport_ats.c
index c782b97d9..4be988095 100644
--- a/src/transport/test_transport_ats.c
+++ b/src/transport/test_transport_ats.c
@@ -96,9 +96,9 @@ void create_ats_information (struct ATS_peer **p, int * c_p,
96int run_ats (void) 96int run_ats (void)
97{ 97{
98 int ret = 0; 98 int ret = 0;
99 99#if HAVE_LIBGLPK
100 ats_calculate_bandwidth_distribution(ats, NULL); 100 ats_calculate_bandwidth_distribution(ats, NULL);
101 101#endif
102 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 102 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
103 "Running ATS: %s \n", (ret==0)? "SUCCESSFUL": "FAILED"); 103 "Running ATS: %s \n", (ret==0)? "SUCCESSFUL": "FAILED");
104 return ret; 104 return ret;
@@ -107,10 +107,11 @@ int run_ats (void)
107int init_ats (void) 107int init_ats (void)
108{ 108{
109 int ret = 0; 109 int ret = 0;
110 110#if HAVE_LIBGLPK
111 ats = ats_init(1.0, 1.0, 1.0, 50000, 5, 10, ATS_MAX_EXEC_DURATION, 111 ats = ats_init(1.0, 1.0, 1.0, 50000, 5, 10, ATS_MAX_EXEC_DURATION,
112 create_ats_information, 112 create_ats_information,
113 ats_result_cb); 113 ats_result_cb);
114#endif
114 //GNUNET_assert (ats != NULL); 115 //GNUNET_assert (ats != NULL);
115 116
116 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 117 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
@@ -122,9 +123,10 @@ int init_ats (void)
122int shutdown_ats (void) 123int shutdown_ats (void)
123{ 124{
124 int ret = 0; 125 int ret = 0;
125 126#if HAVE_LIBGLPK
126 ats_delete_problem (ats); 127 ats_delete_problem (ats);
127 ats_shutdown (ats); 128 ats_shutdown (ats);
129#endif
128 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 130 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
129 "Shutdown ATS: %s \n", (ret==0)? "SUCCESSFUL": "FAILED"); 131 "Shutdown ATS: %s \n", (ret==0)? "SUCCESSFUL": "FAILED");
130 return ret; 132 return ret;