diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-30 11:41:26 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2013-08-30 11:41:26 +0000 |
commit | 3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d (patch) | |
tree | b34ba8ceabb3b0b709148daf634eb94e8123db4f /src/ats/gnunet-service-ats_addresses.c | |
parent | 75bb2cabda18a4105f518fcebf7fe95dde3132d6 (diff) | |
download | gnunet-3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d.tar.gz gnunet-3df2832fdf4bd38c1c766fe1b3f2a97c9fe1fe4d.zip |
updated experimentation tests
added scope time for feedback api
Diffstat (limited to 'src/ats/gnunet-service-ats_addresses.c')
-rw-r--r-- | src/ats/gnunet-service-ats_addresses.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ats/gnunet-service-ats_addresses.c b/src/ats/gnunet-service-ats_addresses.c index 76489d129..a6351e343 100644 --- a/src/ats/gnunet-service-ats_addresses.c +++ b/src/ats/gnunet-service-ats_addresses.c | |||
@@ -1486,12 +1486,14 @@ GAS_addresses_change_preference (struct GAS_Addresses_Handle *handle, | |||
1486 | handle->s_bulk_stop (handle->solver); | 1486 | handle->s_bulk_stop (handle->solver); |
1487 | } | 1487 | } |
1488 | 1488 | ||
1489 | |||
1489 | /** | 1490 | /** |
1490 | * Change the preference for a peer | 1491 | * Change the preference for a peer |
1491 | * | 1492 | * |
1492 | * @param handle the address handle | 1493 | * @param handle the address handle |
1493 | * @param application the client sending this request | 1494 | * @param application the client sending this request |
1494 | * @param peer the peer id | 1495 | * @param peer the peer id |
1496 | * @param scope the time interval for this feedback: [now - scope .. now] | ||
1495 | * @param kind the preference kind to change | 1497 | * @param kind the preference kind to change |
1496 | * @param score_abs the new preference score | 1498 | * @param score_abs the new preference score |
1497 | */ | 1499 | */ |
@@ -1499,6 +1501,7 @@ void | |||
1499 | GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle, | 1501 | GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle, |
1500 | void *application, | 1502 | void *application, |
1501 | const struct GNUNET_PeerIdentity *peer, | 1503 | const struct GNUNET_PeerIdentity *peer, |
1504 | const struct GNUNET_TIME_Relative scope, | ||
1502 | enum GNUNET_ATS_PreferenceKind kind, | 1505 | enum GNUNET_ATS_PreferenceKind kind, |
1503 | float score_abs) | 1506 | float score_abs) |
1504 | { | 1507 | { |
@@ -1520,7 +1523,7 @@ GAS_addresses_preference_feedback (struct GAS_Addresses_Handle *handle, | |||
1520 | return; | 1523 | return; |
1521 | } | 1524 | } |
1522 | 1525 | ||
1523 | handle->s_feedback (handle->solver, application, peer, kind, score_abs); | 1526 | handle->s_feedback (handle->solver, application, peer, scope, kind, score_abs); |
1524 | } | 1527 | } |
1525 | 1528 | ||
1526 | 1529 | ||