|
@@ -3657,12 +3657,14 @@ download_status_random_backoff_helper(int min_delay, int max_delay)
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
- current_time += increment;
|
|
|
|
++(dls_random.n_download_attempts);
|
|
++(dls_random.n_download_attempts);
|
|
++(dls_random.n_download_failures);
|
|
++(dls_random.n_download_failures);
|
|
|
|
|
|
|
|
|
|
old_increment = increment;
|
|
old_increment = increment;
|
|
|
|
+ if (increment >= max_delay)
|
|
|
|
+ current_time += increment;
|
|
|
|
+
|
|
} while (increment < max_delay);
|
|
} while (increment < max_delay);
|
|
|
|
|
|
done:
|
|
done:
|