From: Christian Grothoff Date: Sun, 1 Nov 2015 20:32:17 +0000 (+0000) Subject: -typo-doxygen X-Git-Tag: initial-import-from-subversion-38251~1157 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6eb3af83223615b90f649b87ac5d4fbd473528f7;p=oweals%2Fgnunet.git -typo-doxygen --- diff --git a/src/testbed/testbed_api.c b/src/testbed/testbed_api.c index 55c36c18c..596b2b592 100644 --- a/src/testbed/testbed_api.c +++ b/src/testbed/testbed_api.c @@ -484,7 +484,7 @@ handle_opsuccess (struct GNUNET_TESTBED_Controller *c, /** - * Handler for #GNUNET_MESSAGE_TYPE_TESTBED_PEER_CREATE_SUCCESS message from + * Handler for #GNUNET_MESSAGE_TYPE_TESTBED_CREATE_PEER_SUCCESS message from * controller (testbed service) * * @param c the controller handle 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, { struct NeighbourMapEntry *n; const struct GNUNET_ATS_SessionQuotaMessage *sqm; + struct GNUNET_BANDWIDTH_Value32NBO last; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Received QUOTA message from peer `%s'\n", @@ -3696,10 +3697,13 @@ GST_neighbours_handle_quota_message (const struct GNUNET_PeerIdentity *peer, /* gone already */ return; } - n->neighbour_receive_quota - = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, - GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota))); - send_outbound_quota_to_clients (n); + last = GNUNET_BANDWIDTH_value_max (GNUNET_CONSTANTS_DEFAULT_BW_IN_OUT, + GNUNET_BANDWIDTH_value_init (ntohl (sqm->quota))); + if (last.value__ != n->neighbour_receive_quota.value__) + { + n->neighbour_receive_quota = last; + send_outbound_quota_to_clients (n); + } } diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 95eeb8788..29416b03d 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c @@ -778,7 +778,7 @@ demultiplexer (void *cls, disconnect_and_schedule_reconnect (h); break; } - if (bytes_physical >= bytes_msg) + if (bytes_physical > bytes_msg) { LOG (GNUNET_ERROR_TYPE_DEBUG, "Overhead for %u byte message was %u\n",