diff options
author | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-19 12:25:54 +0000 |
---|---|---|
committer | Matthias Wachs <wachs@net.in.tum.de> | 2010-11-19 12:25:54 +0000 |
commit | 57690b59695e350908d1895dbf522df5c669c986 (patch) | |
tree | a5b869a9fee3e0451aa033e732974b9fd2eb3644 /src/core/test_core_quota_compliance.c | |
parent | c357ec97367708d372a3b8590241a751e7d40a88 (diff) | |
download | gnunet-57690b59695e350908d1895dbf522df5c669c986.tar.gz gnunet-57690b59695e350908d1895dbf522df5c669c986.zip |
Adding soft quota
Diffstat (limited to 'src/core/test_core_quota_compliance.c')
-rw-r--r-- | src/core/test_core_quota_compliance.c | 6 |
1 files 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) | |||
217 | else | 217 | else |
218 | quota_delta = max_quota_out / 10; | 218 | quota_delta = max_quota_out / 10; |
219 | 219 | ||
220 | if ((throughput_out < (max_quota_out/1024)) && (throughput_out < (max_quota_in/1024))) | 220 | if ((throughput_out > (max_quota_out+quota_delta)/1024) || (throughput_in > (max_quota_in+quota_delta)/1024)) |
221 | ok = 0; | ||
222 | else | ||
223 | ok = 1; | 221 | ok = 1; |
222 | else | ||
223 | ok = 0; | ||
224 | 224 | ||
225 | GNUNET_STATISTICS_get (p1.stats, | 225 | GNUNET_STATISTICS_get (p1.stats, |
226 | "core", | 226 | "core", |