Fixed statistics count.
This commit is contained in:
@ -49,6 +49,16 @@ struct message {
|
||||
struct user from; ///< Info on the peer who sent the message.
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Structure with information on the status of the node's connection.
|
||||
*/
|
||||
struct stats {
|
||||
unsigned int good,
|
||||
dubious,
|
||||
cached,
|
||||
incoming;
|
||||
};
|
||||
|
||||
/**
|
||||
* @brief Status of a sent message.
|
||||
*/
|
||||
@ -110,7 +120,7 @@ int NeoComm_export_nodes(const char *node_file);
|
||||
*
|
||||
* @return A text description of the local node's status.
|
||||
*/
|
||||
const char *NeoComm_get_node_stats();
|
||||
struct stats NeoComm_get_node_stats();
|
||||
|
||||
/**
|
||||
* @brief Get the number of nodes connected.
|
||||
|
Reference in New Issue
Block a user