mirror of
https://github.com/ZeroTier/ZeroTierOne
synced 2025-08-19 21:03:57 -07:00
Testnet work... getting there!
This commit is contained in:
parent
0a195e7bc0
commit
4fbb098daa
11 changed files with 398 additions and 149 deletions
|
@ -32,7 +32,7 @@
|
|||
#include <utility>
|
||||
#include <queue>
|
||||
|
||||
#include "Constants.hpp"
|
||||
#include "../node/Constants.hpp"
|
||||
#include "../node/SocketManager.hpp"
|
||||
#include "../node/Mutex.hpp"
|
||||
#include "../node/Condition.hpp"
|
||||
|
@ -76,7 +76,10 @@ public:
|
|||
inline TransferStats stats(const InetAddress &peer) const
|
||||
{
|
||||
Mutex::Lock _l(_stats_m);
|
||||
return _stats[peer];
|
||||
std::map< InetAddress,TransferStats >::const_iterator s(_stats.find(peer));
|
||||
if (s == _stats.end())
|
||||
return TransferStats();
|
||||
return s->second;
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue