From 57690b59695e350908d1895dbf522df5c669c986 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Fri, 19 Nov 2010 12:25:54 +0000 Subject: [PATCH] Adding soft quota --- src/core/test_core_quota_compliance.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/core/test_core_quota_compliance.c b/src/core/test_core_quota_compliance.c index f6403532c..4f58c7c60 100644 --- a/src/core/test_core_quota_compliance.c +++ b/src/core/test_core_quota_compliance.c @@ -217,10 +217,10 @@ measurement_stop (void *cls, const struct GNUNET_SCHEDULER_TaskContext *tc) else quota_delta = max_quota_out / 10; - if ((throughput_out < (max_quota_out/1024)) && (throughput_out < (max_quota_in/1024))) - ok = 0; - else + if ((throughput_out > (max_quota_out+quota_delta)/1024) || (throughput_in > (max_quota_in+quota_delta)/1024)) ok = 1; + else + ok = 0; GNUNET_STATISTICS_get (p1.stats, "core", -- 2.25.1