(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Tue, 5 Apr 2011 07:27:16 +0000 (07:27 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Tue, 5 Apr 2011 07:27:16 +0000 (07:27 +0000)
src/transport/gnunet-service-transport.c

index c4026dcea3fa588b639e29a63913538a30afc479..73a8afde629d361acdc6d4a606ef352a0eb7314a 100644 (file)
@@ -6205,7 +6205,7 @@ static int ats_solve_problem (int max_it, int max_dur , double D, double U, doub
                while (t!=NULL)
                {
                        bw = glp_get_col_prim(prob, t->col_index);
-                       if ((bw != 0) && (1 == glp_get_col_prim(prob, t->col_index+c_mechs)))
+                       if (bw > 1.0)
                        {
                                if (VERBOSE_ATS) GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "[%i][%i] `%s' %s %s %f\n", c, t->col_index, GNUNET_h2s(&peers[c].peer.hashPubKey), t->plugin->short_name, glp_get_col_name(prob,t->col_index), bw);
                                if (check ==GNUNET_YES)