aboutsummaryrefslogtreecommitdiff
path: root/src/fs/gnunet-service-fs_pr.c
diff options
context:
space:
mode:
authorDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
committerDavid Barksdale <amatus@amatus.name>2016-11-17 23:24:43 -0600
commit12597da2a33fe196a785a656136cba7675a06e21 (patch)
treec189c7fb7f2835f8219622400d83c453a91dbb69 /src/fs/gnunet-service-fs_pr.c
parentcdeb1253bfda209def1ef48b436ff09cf7ab8be6 (diff)
downloadgnunet-12597da2a33fe196a785a656136cba7675a06e21.tar.gz
gnunet-12597da2a33fe196a785a656136cba7675a06e21.zip
Sometimes it's OK if multiplication overflows
Diffstat (limited to 'src/fs/gnunet-service-fs_pr.c')
-rw-r--r--src/fs/gnunet-service-fs_pr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fs/gnunet-service-fs_pr.c b/src/fs/gnunet-service-fs_pr.c
index f8a7b61f0..63462f7dc 100644
--- a/src/fs/gnunet-service-fs_pr.c
+++ b/src/fs/gnunet-service-fs_pr.c
@@ -1036,7 +1036,7 @@ put_migration_continuation (void *cls, int success,
1036 ppd->migration_delay); 1036 ppd->migration_delay);
1037 mig_pause.rel_value_us = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK, 1037 mig_pause.rel_value_us = GNUNET_CRYPTO_random_u64 (GNUNET_CRYPTO_QUALITY_WEAK,
1038 ppd->migration_delay.rel_value_us); 1038 ppd->migration_delay.rel_value_us);
1039 ppd->migration_delay = GNUNET_TIME_relative_multiply (ppd->migration_delay, 2); 1039 ppd->migration_delay = GNUNET_TIME_relative_saturating_multiply (ppd->migration_delay, 2);
1040 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, 1040 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
1041 "Replicated content already exists locally, asking to stop migration for %s\n", 1041 "Replicated content already exists locally, asking to stop migration for %s\n",
1042 GNUNET_STRINGS_relative_time_to_string (mig_pause, 1042 GNUNET_STRINGS_relative_time_to_string (mig_pause,