aboutsummaryrefslogtreecommitdiff
path: root/src/fs/fs_download.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
committerChristian Grothoff <christian@grothoff.org>2012-10-26 22:13:01 +0000
commit64d3e46cfb99a711e500fa1f114e7c44bdf10040 (patch)
tree83093d92761d5c1b8b2fded713adaa19af29274c /src/fs/fs_download.c
parentef6f05f63769263a5201636c4b7f71eaa455cdf3 (diff)
downloadgnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.tar.gz
gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.zip
-bugfixes, code cleanup
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r--src/fs/fs_download.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/fs/fs_download.c b/src/fs/fs_download.c
index ecb5c5f8a..ee301d4d0 100644
--- a/src/fs/fs_download.c
+++ b/src/fs/fs_download.c
@@ -1439,9 +1439,8 @@ try_reconnect (struct GNUNET_FS_DownloadContext *dc)
1439 if (0 == dc->reconnect_backoff.rel_value) 1439 if (0 == dc->reconnect_backoff.rel_value)
1440 dc->reconnect_backoff = GNUNET_TIME_UNIT_MILLISECONDS; 1440 dc->reconnect_backoff = GNUNET_TIME_UNIT_MILLISECONDS;
1441 else 1441 else
1442 dc->reconnect_backoff = GNUNET_TIME_relative_min (GNUNET_TIME_relative_multiply (dc->reconnect_backoff, 2), 1442 dc->reconnect_backoff = GNUNET_TIME_STD_BACKOFF (dc->reconnect_backoff);
1443 GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10)); 1443
1444
1445 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will try to reconnect in %s\n", 1444 GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Will try to reconnect in %s\n",
1446 GNUNET_STRINGS_relative_time_to_string (dc->reconnect_backoff, GNUNET_YES)); 1445 GNUNET_STRINGS_relative_time_to_string (dc->reconnect_backoff, GNUNET_YES));
1447 dc->task = 1446 dc->task =