epee: fix peak upload speed accounting

This commit is contained in:
Samy
2026-08-07 20:34:47 +02:00
parent 3634d19bb0
commit 6d3a705194
@@ -547,8 +547,8 @@ namespace net_utils
m_state.stat.out.throttle.handle_trafic_exact(bytes_transferred);
const auto speed = m_state.stat.out.throttle.get_current_speed();
get_context().m_current_speed_up = speed;
get_context().m_max_speed_down = std::max(
get_context().m_max_speed_down,
get_context().m_max_speed_up = std::max(
get_context().m_max_speed_up,
speed
);
if (speed_limit_is_enabled()) {