diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:04:27 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-02-08 13:04:27 +0000 |
commit | b644458a5800a53f3b0196fe559d51a21dca70b9 (patch) | |
tree | fa7f8b8a497d5306b68f9f2fe41e565365f8c5c9 /src/ats/gnunet-service-ats_addresses.c | |
parent | 6115a1150c65bd4a33ed61c6e96594c4a73d86ac (diff) | |
download | gnunet-b644458a5800a53f3b0196fe559d51a21dca70b9.tar.gz gnunet-b644458a5800a53f3b0196fe559d51a21dca70b9.zip |
simplify normalization logic, also have clients access norm array of address directly
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 6c40c6fc8..0a35570c7 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -412,6 +412,7 @@ create_address (const struct GNUNET_PeerIdentity *peer, | |||
412 | for (c1 = 0; c1 < GNUNET_ATS_QualityPropertiesCount; c1++) | 412 | for (c1 = 0; c1 < GNUNET_ATS_QualityPropertiesCount; c1++) |
413 | { | 413 | { |
414 | aa->atsin[c1].avg_queue_index = 0; | 414 | aa->atsin[c1].avg_queue_index = 0; |
415 | aa->atsin[c1].norm = DEFAULT_REL_QUALITY; | ||
415 | for (c2 = 0; c2 < GAS_normalization_queue_length; c2++) | 416 | for (c2 = 0; c2 < GAS_normalization_queue_length; c2++) |
416 | aa->atsin[c1].atsi_abs[c2] = GNUNET_ATS_VALUE_UNDEFINED; | 417 | aa->atsin[c1].atsi_abs[c2] = GNUNET_ATS_VALUE_UNDEFINED; |
417 | } | 418 | } |