fixed RPL statistics bug and added parent switch stats
This commit is contained in:
parent
7033bc859e
commit
5f4d4550fc
3 changed files with 3 additions and 1 deletions
|
@ -358,6 +358,7 @@ rpl_select_parent(rpl_dag_t *dag)
|
|||
rpl_reset_dio_timer(dag, 1);
|
||||
PRINTF("RPL: New preferred parent, rank changed from %u to %u\n",
|
||||
(unsigned)dag->rank, dag->of->calculate_rank(best, 0));
|
||||
RPL_STAT(rpl_stats.parent_switch++);
|
||||
}
|
||||
|
||||
/* Update the DAG rank, since link-layer information may have changed
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue