From a972e5474e8c89f39513a4ecad2b9edc91d066cf Mon Sep 17 00:00:00 2001 From: Quentin Dufour Date: Tue, 17 Sep 2019 00:10:20 +0200 Subject: [PATCH] Update algo thunder --- src/algo_thunder.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/algo_thunder.c b/src/algo_thunder.c index 4d11376..d4e4425 100644 --- a/src/algo_thunder.c +++ b/src/algo_thunder.c @@ -6,6 +6,7 @@ #include "timer.h" #include "proxy.h" +#define PROBE_EVERY 5 uint64_t compute_delta(struct timespec* prev_time, uint64_t max, uint8_t update) { struct timespec curr; int secs, nsecs; @@ -111,7 +112,7 @@ int schedule(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, struct bu } // We let some time for blacklisted links to recover - if (is_blacklisted (thunderc, thunderc->selected_link) && thunderc->to_increment[thunderc->selected_link] < 10) continue; + if (is_blacklisted (thunderc, thunderc->selected_link) && thunderc->to_increment[thunderc->selected_link] < PROBE_EVERY) continue; //printf("URL %s has been retained\n", url);