fixed RPL statistics bug and added parent switch stats

This commit is contained in:
Joakim Eriksson 2011-03-15 14:14:41 +01:00
parent 7033bc859e
commit 5f4d4550fc
3 changed files with 3 additions and 1 deletions

View file

@ -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