Move total into stats.

This commit is contained in:
Nicolás Ortega Froysa
2017-11-10 16:34:36 +01:00
parent 64fbe3ec9c
commit f08812fba4
3 changed files with 6 additions and 18 deletions

View File

@ -113,13 +113,9 @@ int NeoComm_export_nodes(const char *node_file) {
return 1;
}
unsigned int NeoComm_count_connected_nodes() {
return node.getNodesStats(AF_UNSPEC).getKnownNodes();
}
struct stats NeoComm_get_node_stats() {
struct stats statistics;
node.getNodesStats(
statistics.total = node.getNodesStats(
AF_UNSPEC,
&statistics.good,
&statistics.dubious,