simplewallet: new net_stats command

displays total sent and received bytes
This commit is contained in:
moneromooo-monero 2019-03-29 22:03:52 +00:00
parent 19e37c05d6
commit 9f8dc4ce51
No known key found for this signature in database
GPG key ID: 686F07454D6CEFC3
6 changed files with 56 additions and 2 deletions

View file

@ -444,6 +444,16 @@ namespace net_utils
return handle_reciev(timeout);
}
//---------------------------------------------------------------------------
uint64_t get_bytes_sent() const
{
return m_net_client.get_bytes_sent();
}
//---------------------------------------------------------------------------
uint64_t get_bytes_received() const
{
return m_net_client.get_bytes_received();
}
//---------------------------------------------------------------------------
private:
//---------------------------------------------------------------------------
inline bool handle_reciev(std::chrono::milliseconds timeout)