diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 08:54:34 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2014-05-19 08:54:34 +0000 |
commit | 7fadb2c764dfdcd6e4e357e8b0d9373642c33235 (patch) | |
tree | 87be9d2d357caa7f0253d19f66df26a3048d93d9 /src/ats | |
parent | 4cf3dc2d3d71b0ce2adacdfb6e3ed5acfdc6d962 (diff) | |
download | gnunet-7fadb2c764dfdcd6e4e357e8b0d9373642c33235.tar.gz gnunet-7fadb2c764dfdcd6e4e357e8b0d9373642c33235.zip |
remove log level and initialize values
Diffstat (limited to 'src/ats')
-rw-r--r-- | src/ats/gnunet-ats-solver-eval.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ats/gnunet-ats-solver-eval.c b/src/ats/gnunet-ats-solver-eval.c index 9028e6294..dd1bb9275 100644 --- a/src/ats/gnunet-ats-solver-eval.c +++ b/src/ats/gnunet-ats-solver-eval.c | |||
@@ -930,7 +930,7 @@ set_feedback_task (void *cls, | |||
930 | default: | 930 | default: |
931 | break; | 931 | break; |
932 | } | 932 | } |
933 | GNUNET_log(GNUNET_ERROR_TYPE_ERROR, | 933 | GNUNET_log(GNUNET_ERROR_TYPE_INFO, |
934 | "Giving feedback for peer [%u] for client %p pref %s of %.3f\n", | 934 | "Giving feedback for peer [%u] for client %p pref %s of %.3f\n", |
935 | pg->peer, NULL + (pg->client_id), | 935 | pg->peer, NULL + (pg->client_id), |
936 | GNUNET_ATS_print_preference_type (pg->kind), | 936 | GNUNET_ATS_print_preference_type (pg->kind), |
@@ -2441,9 +2441,13 @@ enforce_stop_request (struct GNUNET_ATS_TEST_Operation *op) | |||
2441 | return; | 2441 | return; |
2442 | } | 2442 | } |
2443 | 2443 | ||
2444 | |||
2445 | |||
2444 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Stop requesting address for peer %u\n", | 2446 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "Stop requesting address for peer %u\n", |
2445 | op->peer_id); | 2447 | op->peer_id); |
2446 | p->is_requested = GNUNET_NO; | 2448 | p->is_requested = GNUNET_NO; |
2449 | p->assigned_bw_in.value__ = htonl(0); | ||
2450 | p->assigned_bw_out.value__ = htonl(0); | ||
2447 | sh->env.sf.s_get_stop (sh->solver, &p->peer_id); | 2451 | sh->env.sf.s_get_stop (sh->solver, &p->peer_id); |
2448 | 2452 | ||
2449 | if (NULL != l) | 2453 | if (NULL != l) |
@@ -2967,7 +2971,6 @@ solver_bandwidth_changed_cb (void *cls, struct ATS_Address *address) | |||
2967 | { | 2971 | { |
2968 | duration = GNUNET_TIME_absolute_get_duration(pg->feedback_last_bw_update); | 2972 | duration = GNUNET_TIME_absolute_get_duration(pg->feedback_last_bw_update); |
2969 | delta = duration.rel_value_us * pg->last_assigned_bw_out; | 2973 | delta = duration.rel_value_us * pg->last_assigned_bw_out; |
2970 | //GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "------> DELTA %u %u\n",delta, duration.rel_value_us); | ||
2971 | pg->feedback_bw_out_acc += delta; | 2974 | pg->feedback_bw_out_acc += delta; |
2972 | 2975 | ||
2973 | delta = duration.rel_value_us * pg->last_assigned_bw_in; | 2976 | delta = duration.rel_value_us * pg->last_assigned_bw_in; |
@@ -3066,7 +3069,6 @@ normalized_property_changed_cb (void *cls, struct ATS_Address *address, | |||
3066 | { | 3069 | { |
3067 | duration = GNUNET_TIME_absolute_get_duration(pg->feedback_last_delay_update); | 3070 | duration = GNUNET_TIME_absolute_get_duration(pg->feedback_last_delay_update); |
3068 | delta = duration.rel_value_us * pg->last_delay_value; | 3071 | delta = duration.rel_value_us * pg->last_delay_value; |
3069 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "------> DELTA %u %u\n",delta, duration.rel_value_us); | ||
3070 | pg->feedback_delay_acc += delta; | 3072 | pg->feedback_delay_acc += delta; |
3071 | 3073 | ||
3072 | pg->last_delay_value = prop_rel; | 3074 | pg->last_delay_value = prop_rel; |