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);