projects
/
oweals
/
gnunet.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c357ec9
)
Adding soft quota
author
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 19 Nov 2010 12:25:54 +0000
(12:25 +0000)
committer
Matthias Wachs
<wachs@net.in.tum.de>
Fri, 19 Nov 2010 12:25:54 +0000
(12:25 +0000)
src/core/test_core_quota_compliance.c
patch
|
blob
|
history
diff --git
a/src/core/test_core_quota_compliance.c
b/src/core/test_core_quota_compliance.c
index f6403532cc18703e46dd30740e187d500116b853..4f58c7c60ac6b45002fe432d1b10ff6f506014c2 100644
(file)
--- 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",