Skip to content
This repository has been archived by the owner on Dec 14, 2020. It is now read-only.

Commit

Permalink
Don't add traffic to the tree if we decided we weren't ready for an u…
Browse files Browse the repository at this point in the history
…pdate - would cause some traffic to be added twice
  • Loading branch information
RMerl committed May 15, 2013
1 parent ab1d13d commit 7255304
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions release/src/router/cstats/cstats.c
Expand Up @@ -602,6 +602,7 @@ static void calc(void) {
n = tick / INTERVAL;
if (n < 1) {
printf("%s: %s is a little early... %lu < %d\n", __FUNCTION__, ipaddr, tick, INTERVAL);
continue; // Don't update the tree this time
} else {
ptr->utime += (n * INTERVAL);
printf("%s: %s n=%d tick=%lu utime=%lu ptr->utime=%lu\n", __FUNCTION__, ipaddr, n, tick, current_uptime, ptr->utime);
Expand Down

0 comments on commit 7255304

Please sign in to comment.