gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r13747 - gnunet/src/core


From: gnunet
Subject: [GNUnet-SVN] r13747 - gnunet/src/core
Date: Fri, 19 Nov 2010 13:25:54 +0100

Author: wachs
Date: 2010-11-19 13:25:54 +0100 (Fri, 19 Nov 2010)
New Revision: 13747

Modified:
   gnunet/src/core/test_core_quota_compliance.c
Log:
Adding soft quota


Modified: gnunet/src/core/test_core_quota_compliance.c
===================================================================
--- gnunet/src/core/test_core_quota_compliance.c        2010-11-19 12:20:02 UTC 
(rev 13746)
+++ gnunet/src/core/test_core_quota_compliance.c        2010-11-19 12:25:54 UTC 
(rev 13747)
@@ -217,10 +217,10 @@
   else
          quota_delta = max_quota_out / 10;
 
-  if ((throughput_out < (max_quota_out/1024)) && (throughput_out < 
(max_quota_in/1024)))
+  if ((throughput_out > (max_quota_out+quota_delta)/1024) || (throughput_in > 
(max_quota_in+quota_delta)/1024))
+         ok = 1;
+  else
          ok = 0;
-  else
-         ok = 1;
 
   GNUNET_STATISTICS_get (p1.stats,
                     "core",




reply via email to

[Prev in Thread] Current Thread [Next in Thread]