mirror of
https://github.com/monero-project/monero.git
synced 2024-12-23 12:09:54 +00:00
network_throttle: initialize m_last_sample_time in ctor
Coverity 136593
This commit is contained in:
parent
d9400f69eb
commit
2362baf735
1 changed files with 1 additions and 0 deletions
|
@ -150,6 +150,7 @@ network_throttle::network_throttle(const std::string &nameshort, const std::stri
|
||||||
m_any_packet_yet = false;
|
m_any_packet_yet = false;
|
||||||
m_slot_size = 1.0; // hard coded in few places
|
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_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)
|
void network_throttle::set_name(const std::string &name)
|
||||||
|
|
Loading…
Reference in a new issue