aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_cp.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2011-11-04 13:32:45 +0000
committerChristian Grothoff <christian@grothoff.org>2011-11-04 13:32:45 +0000
commitf23af8a34c2abcc816cf67e6674fcf18041630b5 (patch)
treeaea05f924f38dc3a0336f6388b78d47b35ea5e87 /src/fs/gnunet-service-fs_cp.c
parent77b6ff6328120de950fd5d7802819882455a4da1 (diff)
downloadgnunet-f23af8a34c2abcc816cf67e6674fcf18041630b5.tar.gz
gnunet-f23af8a34c2abcc816cf67e6674fcf18041630b5.zip
implementing #1785
Diffstat (limited to 'src/fs/gnunet-service-fs_cp.c')
-rw-r--r--src/fs/gnunet-service-fs_cp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/fs/gnunet-service-fs_cp.c b/src/fs/gnunet-service-fs_cp.c
index fc9c44785..859d9275f 100644
--- a/src/fs/gnunet-service-fs_cp.c
+++ b/src/fs/gnunet-service-fs_cp.c
@@ -838,11 +838,11 @@ get_randomized_delay ()
838{ 838{
839 struct GNUNET_TIME_Relative ret; 839 struct GNUNET_TIME_Relative ret;
840 840
841 /* FIXME: replace 5000 with something relating to current observed P2P message latency */
842 ret = 841 ret =
843 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 842 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS,
844 GNUNET_CRYPTO_random_u32 843 GNUNET_CRYPTO_random_u32
845 (GNUNET_CRYPTO_QUALITY_WEAK, 5000)); 844 (GNUNET_CRYPTO_QUALITY_WEAK,
845 2 * GSF_avg_latency.rel_value + 1));
846 GNUNET_STATISTICS_update (GSF_stats, 846 GNUNET_STATISTICS_update (GSF_stats,
847 gettext_noop 847 gettext_noop
848 ("# artificial delays introduced (ms)"), 848 ("# artificial delays introduced (ms)"),