Skip to content
Snippets Groups Projects
Commit 863bda7b authored by Sebastian Meiling's avatar Sebastian Meiling Committed by GitHub
Browse files

Merge pull request #7163 from cgundogan/pr/trickle_fix

trickle: adjust old_interval to max / 2 in case of I > Imax
parents ec9073e4 933b3cb3
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,7 @@ void trickle_interval(trickle_t *trickle)
if ((trickle->I == 0) || (trickle->I > max_interval)) {
trickle->I = max_interval;
old_interval = max_interval / 2;
}
DEBUG("trickle: I == %" PRIu32 ", diff == %" PRIu32 "\n", trickle->I, diff);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment