diff --git a/src/algo_thunder.c b/src/algo_thunder.c index 84d0c35..0aa3e03 100644 --- a/src/algo_thunder.c +++ b/src/algo_thunder.c @@ -11,7 +11,7 @@ struct thunder_ctx { uint64_t lid_sent; uint8_t selected_link; uint8_t total_links; - uint64_t lid_sent_per_link[64]; + uint8_t lid_sent_per_link[64]; uint8_t delta_t_per_link[64]; }; @@ -47,7 +47,9 @@ int schedule(struct evt_core_ctx* ctx, struct evt_core_fdinfo* fdinfo, struct bu if (thunderc->selected_link == 0) { thunderc->lid_sent++; - + for (int i = 0; i < thunderc->total_links; i++) { + thunderc->lid_sent_per_link[i]++; + } } union abstract_packet links = {