diff options
| author | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-26 14:20:25 -0800 |
|---|---|---|
| committer | Adam Ierymenko <adam.ierymenko@gmail.com> | 2016-01-26 14:20:25 -0800 |
| commit | c0668dcdf298b4219be3a701a2d3e237cf57e114 (patch) | |
| tree | ecef265f6d46c0d3a87767ea00af1fb6aafe1447 /controller/SqliteNetworkController.hpp | |
| parent | 67f678d60a7907ff196cff42460c23e33cc9ac1e (diff) | |
| parent | 9cb4bbe2b879f766c7cdfc998ddd55d15ce201a2 (diff) | |
| download | infinitytier-c0668dcdf298b4219be3a701a2d3e237cf57e114.tar.gz infinitytier-c0668dcdf298b4219be3a701a2d3e237cf57e114.zip | |
Merge branch 'edge' into dev
Diffstat (limited to 'controller/SqliteNetworkController.hpp')
| -rw-r--r-- | controller/SqliteNetworkController.hpp | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/controller/SqliteNetworkController.hpp b/controller/SqliteNetworkController.hpp index 0e2bb63e..d58b3fc9 100644 --- a/controller/SqliteNetworkController.hpp +++ b/controller/SqliteNetworkController.hpp @@ -123,7 +123,7 @@ private: std::string _circuitTestPath; std::string _instanceId; - // A circular buffer last log + // Recent request log by device address and network ID struct _LLEntry { _LLEntry() @@ -148,12 +148,15 @@ private: // Total requests by this address / network ID pair (also serves mod IN_MEMORY_LOG_SIZE as circular buffer ptr) uint64_t totalRequests; }; - - // Last log entries by address and network ID pair std::map< std::pair<Address,uint64_t>,_LLEntry > _lastLog; // Circuit tests outstanding - std::map< uint64_t,ZT_CircuitTest * > _circuitTests; + struct _CircuitTestEntry + { + ZT_CircuitTest *test; + std::string jsonResults; + }; + std::map< uint64_t,_CircuitTestEntry > _circuitTests; sqlite3 *_db; |
