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/plugin_ats_ril.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/plugin_ats_ril.c')
-rw-r--r-- | src/ats/plugin_ats_ril.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/src/ats/plugin_ats_ril.c b/src/ats/plugin_ats_ril.c index 850655a27..bd3c5e4a5 100644 --- a/src/ats/plugin_ats_ril.c +++ b/src/ats/plugin_ats_ril.c | |||
@@ -2375,14 +2375,14 @@ GAS_ril_address_delete (void *solver, | |||
2375 | * | 2375 | * |
2376 | * @param solver solver handle | 2376 | * @param solver solver handle |
2377 | * @param address the address | 2377 | * @param address the address |
2378 | * @param type the ATSI type in HBO | 2378 | * @param type the ATSI type |
2379 | * @param abs_value the absolute value of the property | 2379 | * @param abs_value the absolute value of the property |
2380 | * @param rel_value the normalized value | 2380 | * @param rel_value the normalized value |
2381 | */ | 2381 | */ |
2382 | static void | 2382 | static void |
2383 | GAS_ril_address_property_changed (void *solver, | 2383 | GAS_ril_address_property_changed (void *solver, |
2384 | struct ATS_Address *address, | 2384 | struct ATS_Address *address, |
2385 | uint32_t type, | 2385 | enum GNUNET_ATS_Property type, |
2386 | uint32_t abs_value, | 2386 | uint32_t abs_value, |
2387 | double rel_value) | 2387 | double rel_value) |
2388 | { | 2388 | { |
@@ -2583,14 +2583,14 @@ libgnunet_plugin_ats_ril_init (void *cls) | |||
2583 | char *string; | 2583 | char *string; |
2584 | float f_tmp; | 2584 | float f_tmp; |
2585 | 2585 | ||
2586 | LOG(GNUNET_ERROR_TYPE_DEBUG, "API_init() Initializing RIL solver\n"); | 2586 | LOG (GNUNET_ERROR_TYPE_DEBUG, |
2587 | "API_init() Initializing RIL solver\n"); | ||
2587 | 2588 | ||
2588 | GNUNET_assert(NULL != env); | 2589 | GNUNET_assert (NULL != env); |
2589 | GNUNET_assert(NULL != env->cfg); | 2590 | GNUNET_assert (NULL != env->cfg); |
2590 | GNUNET_assert(NULL != env->stats); | 2591 | GNUNET_assert (NULL != env->stats); |
2591 | GNUNET_assert(NULL != env->bandwidth_changed_cb); | 2592 | GNUNET_assert (NULL != env->bandwidth_changed_cb); |
2592 | GNUNET_assert(NULL != env->get_preferences); | 2593 | GNUNET_assert (NULL != env->get_preferences); |
2593 | GNUNET_assert(NULL != env->get_property); | ||
2594 | 2594 | ||
2595 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number(env->cfg, "ats", "RIL_RBF_DIVISOR", &solver->parameters.rbf_divisor)) | 2595 | if (GNUNET_OK != GNUNET_CONFIGURATION_get_value_number(env->cfg, "ats", "RIL_RBF_DIVISOR", &solver->parameters.rbf_divisor)) |
2596 | { | 2596 | { |