Fixed statistics count.

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

View File

@ -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.