Skip to content

Commit

Permalink
trickle: adjust old_interval to max / 2 in case of I > Imax
Browse files Browse the repository at this point in the history
  • Loading branch information
cgundogan committed Jun 9, 2017
1 parent 8971672 commit 933b3cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions sys/trickle/trickle.c
Expand Up @@ -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);
Expand Down

0 comments on commit 933b3cb

Please sign in to comment.