diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-01 20:32:17 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-01 20:32:17 +0000 |
commit | 6eb3af83223615b90f649b87ac5d4fbd473528f7 (patch) | |
tree | bac2825da821e2e57c564e1bbccfbcf8b5cbee1b /src/transport/gnunet-service-transport_neighbours.c | |
parent | cd1a8c319e890e69a6260a6ae99d1023fc6d49ac (diff) | |
download | gnunet-6eb3af83223615b90f649b87ac5d4fbd473528f7.tar.gz gnunet-6eb3af83223615b90f649b87ac5d4fbd473528f7.zip |
-typo-doxygen
Diffstat (limited to 'src/transport/gnunet-service-transport_neighbours.c')
-rw-r--r-- | src/transport/gnunet-service-transport_neighbours.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/transport/gnunet-service-transport_neighbours.c b/src/transport/gnunet-service-transport_neighbours.c index 9f4982b67..0e53f9b6f 100644 --- a/src/transport/gnunet-service-transport_neighbours.c +++ b/src/transport/gnunet-service-transport_neighbours.c | |||
@@ -3673,6 +3673,7 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer, | |||
3673 | { | 3673 | { |
3674 | struct NeighbourMapEntry *n; | 3674 | struct NeighbourMapEntry *n; |
3675 | const struct GNUNET_ATS_SessionQuotaMessage *sqm; | 3675 | const struct GNUNET_ATS_SessionQuotaMessage *sqm; |
3676 | struct GNUNET_BANDWIDTH_Value32NBO last; | ||
3676 | 3677 | ||
3677 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 3678 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
3678 | "Received QUOTA message from peer `%s'\n", | 3679 | "Received QUOTA message from peer `%s'\n", |
@@ -3696,10 +3697,13 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer, | |||
3696 | /* gone already */ | 3697 | /* gone already */ |
3697 | return; | 3698 | return; |
3698 | } | 3699 | } |
3699 | n->neighbour_receive_quota | 3700 | last = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, |
3700 | = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, | 3701 | GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota))); |
3701 | GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota))); | 3702 | if (last.value__ != n->neighbour_receive_quota.value__) |
3702 | send_outbound_quota_to_clients (n); | 3703 | { |
3704 | n->neighbour_receive_quota = last; | ||
3705 | send_outbound_quota_to_clients (n); | ||
3706 | } | ||
3703 | } | 3707 | } |
3704 | 3708 | ||
3705 | 3709 | ||