From: Matthias Wachs Date: Fri, 19 Nov 2010 12:25:54 +0000 (+0000) Subject: Adding soft quota X-Git-Tag: initial-import-from-subversion-38251~19677 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=57690b59695e350908d1895dbf522df5c669c986;p=oweals%2Fgnunet.git Adding soft quota --- 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",