Move total into stats.
This commit is contained in:
@ -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,
|
||||
|
Reference in New Issue
Block a user