diff options
Diffstat (limited to 'src/transport')
-rw-r--r-- | src/transport/Makefile.am | 4 | ||||
-rw-r--r-- | src/transport/gnunet-service-transport.c | 2 | ||||
-rw-r--r-- | src/transport/transport_api.c | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/src/transport/Makefile.am b/src/transport/Makefile.am index 4813946c7..0fbad27ce 100644 --- a/src/transport/Makefile.am +++ b/src/transport/Makefile.am | |||
@@ -200,8 +200,8 @@ check_PROGRAMS = \ | |||
200 | test_transport_api_reliability_tcp_nat \ | 200 | test_transport_api_reliability_tcp_nat \ |
201 | test_transport_api_reliability_udp \ | 201 | test_transport_api_reliability_udp \ |
202 | $(HTTP_REL_TEST) \ | 202 | $(HTTP_REL_TEST) \ |
203 | $(HTTPS_REL_TEST) \ | 203 | $(HTTPS_REL_TEST) |
204 | test_quota_compliance | 204 | # test_quota_compliance |
205 | # TODO: add tests for nat, etc. | 205 | # TODO: add tests for nat, etc. |
206 | 206 | ||
207 | if !DISABLE_TEST_RUN | 207 | if !DISABLE_TEST_RUN |
diff --git a/src/transport/gnunet-service-transport.c b/src/transport/gnunet-service-transport.c index c1bb7bec6..573f8ef9a 100644 --- a/src/transport/gnunet-service-transport.c +++ b/src/transport/gnunet-service-transport.c | |||
@@ -5074,7 +5074,7 @@ handle_set_quota (void *cls, | |||
5074 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 5074 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
5075 | "Received `%s' request (new quota %u, old quota %u) from client for peer `%4s'\n", | 5075 | "Received `%s' request (new quota %u, old quota %u) from client for peer `%4s'\n", |
5076 | "SET_QUOTA", | 5076 | "SET_QUOTA", |
5077 | (unsigned int) ntohl (qsm->quota.value__), | 5077 | (unsigned int) ntohl (qsm->quota.rel_value__), |
5078 | (unsigned int) n->in_tracker.available_bytes_per_s__, | 5078 | (unsigned int) n->in_tracker.available_bytes_per_s__, |
5079 | GNUNET_i2s (&qsm->peer)); | 5079 | GNUNET_i2s (&qsm->peer)); |
5080 | #endif | 5080 | #endif |
diff --git a/src/transport/transport_api.c b/src/transport/transport_api.c index 53330d39e..ad81940ae 100644 --- a/src/transport/transport_api.c +++ b/src/transport/transport_api.c | |||
@@ -868,11 +868,11 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle, | |||
868 | if (n != NULL) | 868 | if (n != NULL) |
869 | { | 869 | { |
870 | #if DEBUG_TRANSPORT | 870 | #if DEBUG_TRANSPORT |
871 | if (ntohl (quota_out.value__) != n->out_tracker.available_bytes_per_s__) | 871 | if (ntohl (quota_out.rel_value__) != n->out_tracker.available_bytes_per_s__) |
872 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 872 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
873 | "Quota changed from %u to %u for peer `%s'\n", | 873 | "Quota changed from %u to %u for peer `%s'\n", |
874 | (unsigned int) n->out_tracker.available_bytes_per_s__, | 874 | (unsigned int) n->out_tracker.available_bytes_per_s__, |
875 | (unsigned int) ntohl (quota_out.value__), | 875 | (unsigned int) ntohl (quota_out.rel_value__), |
876 | GNUNET_i2s (target)); | 876 | GNUNET_i2s (target)); |
877 | else | 877 | else |
878 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 878 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
@@ -888,7 +888,7 @@ GNUNET_TRANSPORT_set_quota (struct GNUNET_TRANSPORT_Handle *handle, | |||
888 | #if DEBUG_TRANSPORT | 888 | #if DEBUG_TRANSPORT |
889 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | 889 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |
890 | "Quota changed to %u for peer `%s', but I have no such neighbour!\n", | 890 | "Quota changed to %u for peer `%s', but I have no such neighbour!\n", |
891 | (unsigned int) ntohl (quota_out.value__), | 891 | (unsigned int) ntohl (quota_out.rel_value__), |
892 | GNUNET_i2s (target)); | 892 | GNUNET_i2s (target)); |
893 | #endif | 893 | #endif |
894 | } | 894 | } |