[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13939 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13939 - gnunet/src/transport |
Date: |
Mon, 20 Dec 2010 11:19:20 +0100 |
Author: wachs
Date: 2010-12-20 11:19:20 +0100 (Mon, 20 Dec 2010)
New Revision: 13939
Modified:
gnunet/src/transport/test_quota_compliance.c
Log:
Modified: gnunet/src/transport/test_quota_compliance.c
===================================================================
--- gnunet/src/transport/test_quota_compliance.c 2010-12-20 10:11:56 UTC
(rev 13938)
+++ gnunet/src/transport/test_quota_compliance.c 2010-12-20 10:19:20 UTC
(rev 13939)
@@ -391,10 +391,10 @@
quota_allowed = current_quota_p2;
- if (MEASUREMENT_SOFT_LIMIT > (quota_allowed/10))
+ if (MEASUREMENT_SOFT_LIMIT > (quota_allowed/3))
delta = MEASUREMENT_SOFT_LIMIT;
else
- delta = (quota_allowed/10);
+ delta = (quota_allowed/3);
/* Throughput is far too slow. This is to prevent the test to exit with
success when throughput is 0 */
if ((total_bytes_sent/(duration.rel_value / 1000)) < 100)
@@ -411,7 +411,14 @@
ok = 1;
failed_measurement_counter--;
if (failed_measurement_counter < 0)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "\nQuota measurement failed and no free
strike: %i\n",failed_measurement_counter);
end();
+ }
+ else
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "\nQuota measurement failed and %i free
strikes\n",failed_measurement_counter);
return;
}
@@ -430,7 +437,14 @@
ok = 1;
failed_measurement_counter--;
if (failed_measurement_counter < 0)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "\nQuota measurement failed and no free
strike: %i\n",failed_measurement_counter);
end();
+ }
+ else
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "\nQuota measurement failed and %i free
strikes\n",failed_measurement_counter);
return;
}
else
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13939 - gnunet/src/transport,
gnunet <=