diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-05 09:55:42 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-07-05 09:55:42 +0000 |
commit | 98dce660a7b76c70da2462995729d0445749233b (patch) | |
tree | 18514ec1c034609ba3e8af76bc98c2cb607042c1 /src/ats/test_ats_mlp_update.c | |
parent | 9bde041f15f890cb36d67cc0d085e6bc143112cb (diff) | |
download | gnunet-98dce660a7b76c70da2462995729d0445749233b.tar.gz gnunet-98dce660a7b76c70da2462995729d0445749233b.zip |
split up update function and using normalized values
Diffstat (limited to 'src/ats/test_ats_mlp_update.c')
-rw-r--r-- | src/ats/test_ats_mlp_update.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ats/test_ats_mlp_update.c b/src/ats/test_ats_mlp_update.c index c13261e9d..8e5a1d6eb 100644 --- a/src/ats/test_ats_mlp_update.c +++ b/src/ats/test_ats_mlp_update.c | |||
@@ -147,7 +147,7 @@ get_property_cb (void *cls, const struct ATS_Address *address) | |||
147 | 147 | ||
148 | static void | 148 | static void |
149 | normalized_property_changed_cb (void *cls, | 149 | normalized_property_changed_cb (void *cls, |
150 | const struct ATS_Address *peer, | 150 | struct ATS_Address *peer, |
151 | uint32_t type, | 151 | uint32_t type, |
152 | double prop_rel) | 152 | double prop_rel) |
153 | { | 153 | { |
@@ -278,7 +278,8 @@ check (void *cls, char *const *args, const char *cfgfile, | |||
278 | ats_prev[3].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR); | 278 | ats_prev[3].type = htonl (GNUNET_ATS_ARRAY_TERMINATOR); |
279 | ats_prev[3].value = htonl (GNUNET_ATS_VALUE_UNDEFINED); | 279 | ats_prev[3].value = htonl (GNUNET_ATS_VALUE_UNDEFINED); |
280 | 280 | ||
281 | GAS_mlp_address_update (mlp, address[0], 1, GNUNET_NO, ats_prev, 4); | 281 | GAS_mlp_address_property_changed(mlp, address[0], GNUNET_ATS_QUALITY_NET_DELAY, 10, 1.1); |
282 | GAS_mlp_address_property_changed(mlp, address[0], GNUNET_ATS_QUALITY_NET_DISTANCE, 1, 1.0); | ||
282 | 283 | ||
283 | /* Solve problem to build matrix */ | 284 | /* Solve problem to build matrix */ |
284 | GAS_mlp_solve_problem (mlp); | 285 | GAS_mlp_solve_problem (mlp); |