diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-29 16:14:18 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-29 16:23:14 +0000 |
commit | 2362baf735a55437e9a6b1dc73b4ccaa3fb9305f (patch) | |
tree | f96b8d029d98ab1911540cb70e3218c6f8130194 /contrib/epee | |
parent | serializtion: add missing mainnet and stagenet fields for 0mq (diff) | |
download | monero-2362baf735a55437e9a6b1dc73b4ccaa3fb9305f.tar.xz |
network_throttle: initialize m_last_sample_time in ctor
Coverity 136593
Diffstat (limited to 'contrib/epee')
-rw-r--r-- | contrib/epee/src/network_throttle-detail.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/epee/src/network_throttle-detail.cpp b/contrib/epee/src/network_throttle-detail.cpp index 28c85bb78..6f727a1cf 100644 --- a/contrib/epee/src/network_throttle-detail.cpp +++ b/contrib/epee/src/network_throttle-detail.cpp @@ -150,6 +150,7 @@ network_throttle::network_throttle(const std::string &nameshort, const std::stri m_any_packet_yet = false; m_slot_size = 1.0; // hard coded in few places m_target_speed = 16 * 1024; // other defaults are probably defined in the command-line parsing code when this class is used e.g. as main global throttle + m_last_sample_time = 0; } void network_throttle::set_name(const std::string &name) |