mirror of
https://github.com/wownero/wownero.git
synced 2026-10-26 02:48:33 +01:00
epee: fix peak upload speed accounting
This commit is contained in:
@@ -547,8 +547,8 @@ namespace net_utils
|
|||||||
m_state.stat.out.throttle.handle_trafic_exact(bytes_transferred);
|
m_state.stat.out.throttle.handle_trafic_exact(bytes_transferred);
|
||||||
const auto speed = m_state.stat.out.throttle.get_current_speed();
|
const auto speed = m_state.stat.out.throttle.get_current_speed();
|
||||||
get_context().m_current_speed_up = speed;
|
get_context().m_current_speed_up = speed;
|
||||||
get_context().m_max_speed_down = std::max(
|
get_context().m_max_speed_up = std::max(
|
||||||
get_context().m_max_speed_down,
|
get_context().m_max_speed_up,
|
||||||
speed
|
speed
|
||||||
);
|
);
|
||||||
if (speed_limit_is_enabled()) {
|
if (speed_limit_is_enabled()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user