diff options
author | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 12:14:44 +0000 |
---|---|---|
committer | moneromooo-monero <moneromooo-monero@users.noreply.github.com> | 2018-10-02 17:28:50 +0000 |
commit | 00901e9c938dc801e963f98825c2ab5976fa8cc5 (patch) | |
tree | a106a6e9272a2404243ae6f356d70ead45ab1d0f /contrib/epee/src/network_throttle-detail.cpp | |
parent | abstract_tcp_server2: move m_period to subclass (diff) | |
download | monero-00901e9c938dc801e963f98825c2ab5976fa8cc5.tar.xz |
epee: initialize a few data members where it seems to be appropriate
Diffstat (limited to '')
-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 7eeade3a1..28c85bb78 100644 --- a/contrib/epee/src/network_throttle-detail.cpp +++ b/contrib/epee/src/network_throttle-detail.cpp @@ -146,6 +146,7 @@ network_throttle::network_throttle(const std::string &nameshort, const std::stri m_network_add_cost = 128; m_network_minimal_segment = 256; m_network_max_segment = 1024*1024; + m_start_time = 0; 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 |