mirror of
https://github.com/monero-project/monero.git
synced 2025-05-07 10:25:04 -04:00
simplewallet: new net_stats command
displays total sent and received bytes
This commit is contained in:
parent
19e37c05d6
commit
9f8dc4ce51
6 changed files with 56 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue