diff options
author | Christian Grothoff <christian@grothoff.org> | 2012-10-26 22:13:01 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2012-10-26 22:13:01 +0000 |
commit | 64d3e46cfb99a711e500fa1f114e7c44bdf10040 (patch) | |
tree | 83093d92761d5c1b8b2fded713adaa19af29274c /src/fs/fs_download.c | |
parent | ef6f05f63769263a5201636c4b7f71eaa455cdf3 (diff) | |
download | gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.tar.gz gnunet-64d3e46cfb99a711e500fa1f114e7c44bdf10040.zip |
-bugfixes, code cleanup
Diffstat (limited to 'src/fs/fs_download.c')
-rw-r--r-- | src/fs/fs_download.c | 5 |
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 = |