diff options
| author | Dan Engelbrecht <[email protected]> | 2024-10-16 09:43:39 +0200 |
|---|---|---|
| committer | GitHub Enterprise <[email protected]> | 2024-10-16 09:43:39 +0200 |
| commit | c81fec9186bb8c0175cf2870e8e3d08860759f82 (patch) | |
| tree | 376702b359213a8452bf0935ae521b9a8d107cee /src | |
| parent | Mirror command: fix utf8 paths mapping to native code page (#197) (diff) | |
| download | zen-c81fec9186bb8c0175cf2870e8e3d08860759f82.tar.xz zen-c81fec9186bb8c0175cf2870e8e3d08860759f82.zip | |
make sure to initialize stats in file, jupiter and zen remote stores (#198)
* make sure to initialize stats in file, jupiter and zen remote stores
Diffstat (limited to 'src')
| -rw-r--r-- | src/zenserver/projectstore/fileremoteprojectstore.cpp | 14 | ||||
| -rw-r--r-- | src/zenserver/projectstore/jupiterremoteprojectstore.cpp | 14 | ||||
| -rw-r--r-- | src/zenserver/projectstore/zenremoteprojectstore.cpp | 14 |
3 files changed, 21 insertions, 21 deletions
diff --git a/src/zenserver/projectstore/fileremoteprojectstore.cpp b/src/zenserver/projectstore/fileremoteprojectstore.cpp index 5c7a5536a..7d6c43c1e 100644 --- a/src/zenserver/projectstore/fileremoteprojectstore.cpp +++ b/src/zenserver/projectstore/fileremoteprojectstore.cpp @@ -295,13 +295,13 @@ private: bool m_EnableBlocks = true; bool m_UseTempBlocks = false; - std::atomic_uint64_t m_SentBytes; - std::atomic_uint64_t m_ReceivedBytes; - std::atomic_uint64_t m_RequestTimeNS; - std::atomic_uint64_t m_RequestCount; - std::atomic_uint64_t m_PeakSentBytes; - std::atomic_uint64_t m_PeakReceivedBytes; - std::atomic_uint64_t m_PeakBytesPerSec; + std::atomic_uint64_t m_SentBytes = {}; + std::atomic_uint64_t m_ReceivedBytes = {}; + std::atomic_uint64_t m_RequestTimeNS = {}; + std::atomic_uint64_t m_RequestCount = {}; + std::atomic_uint64_t m_PeakSentBytes = {}; + std::atomic_uint64_t m_PeakReceivedBytes = {}; + std::atomic_uint64_t m_PeakBytesPerSec = {}; }; std::shared_ptr<RemoteProjectStore> diff --git a/src/zenserver/projectstore/jupiterremoteprojectstore.cpp b/src/zenserver/projectstore/jupiterremoteprojectstore.cpp index bede3abb4..d926499c4 100644 --- a/src/zenserver/projectstore/jupiterremoteprojectstore.cpp +++ b/src/zenserver/projectstore/jupiterremoteprojectstore.cpp @@ -298,13 +298,13 @@ private: bool m_EnableBlocks = true; bool m_UseTempBlocks = true; - std::atomic_uint64_t m_SentBytes; - std::atomic_uint64_t m_ReceivedBytes; - std::atomic_uint64_t m_RequestTimeNS; - std::atomic_uint64_t m_RequestCount; - std::atomic_uint64_t m_PeakSentBytes; - std::atomic_uint64_t m_PeakReceivedBytes; - std::atomic_uint64_t m_PeakBytesPerSec; + std::atomic_uint64_t m_SentBytes = {}; + std::atomic_uint64_t m_ReceivedBytes = {}; + std::atomic_uint64_t m_RequestTimeNS = {}; + std::atomic_uint64_t m_RequestCount = {}; + std::atomic_uint64_t m_PeakSentBytes = {}; + std::atomic_uint64_t m_PeakReceivedBytes = {}; + std::atomic_uint64_t m_PeakBytesPerSec = {}; }; std::shared_ptr<RemoteProjectStore> diff --git a/src/zenserver/projectstore/zenremoteprojectstore.cpp b/src/zenserver/projectstore/zenremoteprojectstore.cpp index 679c344c6..c0082b746 100644 --- a/src/zenserver/projectstore/zenremoteprojectstore.cpp +++ b/src/zenserver/projectstore/zenremoteprojectstore.cpp @@ -304,13 +304,13 @@ private: HttpClient m_Client; - std::atomic_uint64_t m_SentBytes; - std::atomic_uint64_t m_ReceivedBytes; - std::atomic_uint64_t m_RequestTimeNS; - std::atomic_uint64_t m_RequestCount; - std::atomic_uint64_t m_PeakSentBytes; - std::atomic_uint64_t m_PeakReceivedBytes; - std::atomic_uint64_t m_PeakBytesPerSec; + std::atomic_uint64_t m_SentBytes = {}; + std::atomic_uint64_t m_ReceivedBytes = {}; + std::atomic_uint64_t m_RequestTimeNS = {}; + std::atomic_uint64_t m_RequestCount = {}; + std::atomic_uint64_t m_PeakSentBytes = {}; + std::atomic_uint64_t m_PeakReceivedBytes = {}; + std::atomic_uint64_t m_PeakBytesPerSec = {}; }; std::shared_ptr<RemoteProjectStore> |