[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r15076 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r15076 - gnunet/src/transport |
Date: |
Tue, 26 Apr 2011 15:41:09 +0200 |
Author: wachs
Date: 2011-04-26 15:41:09 +0200 (Tue, 26 Apr 2011)
New Revision: 15076
Modified:
gnunet/src/transport/gnunet-service-transport.c
Log:
Modified: gnunet/src/transport/gnunet-service-transport.c
===================================================================
--- gnunet/src/transport/gnunet-service-transport.c 2011-04-22 15:38:43 UTC
(rev 15075)
+++ gnunet/src/transport/gnunet-service-transport.c 2011-04-26 13:41:09 UTC
(rev 15076)
@@ -6240,7 +6240,7 @@
if (qm[c-1].atis_index ==
GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
{
- double v0, v1, v2;
+ double v0 = 0, v1 = 0, v2 = 0;
v0 =
ats->mechanisms[c2].addr->quality[c-1].values[0];
if (v1 < 1) v0 = 0.1;
v1 =
ats->mechanisms[c2].addr->quality[c-1].values[1];
@@ -6252,7 +6252,7 @@
}
if (qm[c-1].atis_index ==
GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
{
- double v0, v1, v2;
+ double v0 = 0, v1 = 0, v2 = 0;
v0 =
ats->mechanisms[c2].addr->quality[c-1].values[0];
if (v0 < 1) v0 = 1;
v1 =
ats->mechanisms[c2].addr->quality[c-1].values[1];
@@ -6729,7 +6729,7 @@
ja[array_index] = c2;
if (qm[c-1].atis_index ==
GNUNET_TRANSPORT_ATS_QUALITY_NET_DELAY)
{
- double v0, v1, v2;
+ double v0 = 0, v1 = 0, v2 = 0;
v0 =
mechanisms[c2].addr->quality[c-1].values[0];
if (v1 < 1) v0 = 0.1;
v1 =
mechanisms[c2].addr->quality[c-1].values[1];
@@ -6741,7 +6741,7 @@
}
if (qm[c-1].atis_index ==
GNUNET_TRANSPORT_ATS_QUALITY_NET_DISTANCE)
{
- double v0, v1, v2;
+ double v0 = 0, v1 = 0, v2 = 0;
v0 =
mechanisms[c2].addr->quality[c-1].values[0];
if (v0 < 1) v0 = 1;
v1 =
mechanisms[c2].addr->quality[c-1].values[1];
@@ -6901,6 +6901,7 @@
text = "new";
ats->modified_addr = GNUNET_YES;
ats_delete_problem ();
+
ats_create_problem (ats->D, ats->U, ats->R, ats->v_b_min,
ats->v_n_min, &ats->stat);
#if DEBUG_ATS
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Peers/Addresses were
modified... new problem: %i peer, %i mechs\n", ats->stat.c_peers,
ats->stat.c_mechs);
@@ -7137,8 +7138,10 @@
if (ats->ats_task != GNUNET_SCHEDULER_NO_TASK)
GNUNET_SCHEDULER_cancel(ats->ats_task);
ats->ats_task = GNUNET_SCHEDULER_NO_TASK;
+
#if HAVE_LIBGLPK
ats_delete_problem ();
+ glp_free_env();
#endif
GNUNET_free (ats);
}
@@ -7151,7 +7154,6 @@
#if DEBUG_ATS
GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "ats_notify_peer_connect:
%s\n",GNUNET_i2s(peer));
#endif
-
//update_addr_ats();
ats->modified_addr = GNUNET_YES;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r15076 - gnunet/src/transport,
gnunet <=