Move total into stats.

This commit is contained in:
nortega committed 2017-11-10 16:34:36 +01:00
1 parent 64fbe3ec9c
commit f08812fba4
3 files changed
+6 -18

No files matched your search

+1 -5
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,