Skip to content

Commit

Permalink
Fix RTB service and node number computing
Browse files Browse the repository at this point in the history
  • Loading branch information
JeromeGalan authored and Salem-Tho committed Jan 28, 2022
1 parent 09f6c7a commit 0a6635b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routing_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -312,7 +312,7 @@ uint16_t RoutingTB_GetNodeNB(void)
node_nb++;
}
}
return node_nb - 1;
return node_nb;
}
/******************************************************************************
* @brief get ID of node on network
Expand All @@ -339,7 +339,7 @@ uint16_t RoutingTB_GetServiceNB(void)
service_nb++;
}
}
return service_nb - 1;
return service_nb;
}
/******************************************************************************
* @brief get ID of service on the network
Expand Down

0 comments on commit 0a6635b

Please sign in to comment.