aboutsummaryrefslogtreecommitdiff
path: root/src/transport/test_quota_compliance.c
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2010-10-22 15:44:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2010-10-22 15:44:20 +0000
commit7ed2e34a7d30767f975752e86d16e21bf0c23a5d (patch)
tree4a21e6692fb5cf7168a0eab907e34671edd30dc2 /src/transport/test_quota_compliance.c
parent16c5255cb5610343f67de5318e3c5c7df18eede7 (diff)
downloadgnunet-7ed2e34a7d30767f975752e86d16e21bf0c23a5d.tar.gz
gnunet-7ed2e34a7d30767f975752e86d16e21bf0c23a5d.zip
Diffstat (limited to 'src/transport/test_quota_compliance.c')
-rw-r--r--src/transport/test_quota_compliance.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/transport/test_quota_compliance.c b/src/transport/test_quota_compliance.c
index 65c5e55f4..e24a298d2 100644
--- a/src/transport/test_quota_compliance.c
+++ b/src/transport/test_quota_compliance.c
@@ -34,7 +34,7 @@
34#include "gnunet_transport_service.h" 34#include "gnunet_transport_service.h"
35#include "transport.h" 35#include "transport.h"
36 36
37#define VERBOSE GNUNET_NO 37#define VERBOSE GNUNET_YES
38 38
39#define VERBOSE_ARM GNUNET_NO 39#define VERBOSE_ARM GNUNET_NO
40 40
@@ -304,14 +304,16 @@ measurement_end (void *cls,
304 transmit_handle = NULL; 304 transmit_handle = NULL;
305 } 305 }
306 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 306 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
307 "\n Measurement finished: \n Quota allowed: %llu kb/s\n Throughput: %llu kb/s\n", (current_quota_p1 / (1024)) , (total_bytes/(duration.value / 1000)/1024)); 307 "\nQuota compliance ok: \n"\
308 "Quota allowed: %10llu kb/s\n"\
309 "Throughput : %10llu kb/s\n", (current_quota_p1 / (1024)) , (total_bytes/(duration.value / 1000)/1024));
308 310
309 if (current_quota_p1 < total_bytes/(duration.value / 1000)) 311 if (current_quota_p1 < total_bytes/(duration.value / 1000))
310 { 312 {
311 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 313 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
312 "\nQuota compliance failed: \n"\ 314 "\nQuota compliance failed: \n"\
313 "Quota allowed: %llu kb/s\n"\ 315 "Quota allowed: %10llu kb/s\n"\
314 "Throughput : %llu kb/s\n", (current_quota_p1 / (1024)) , (total_bytes/(duration.value / 1000)/1024)); 316 "Throughput : %10llu kb/s\n", (current_quota_p1 / (1024)) , (total_bytes/(duration.value / 1000)/1024));
315 ok = 1; 317 ok = 1;
316 end(); 318 end();
317 return; 319 return;