removed floating point operation in rate limited udp socket

This commit is contained in:
Arvid Norberg 2009-11-01 03:18:00 +00:00
parent bbb551eb8e
commit deb363e53b
1 changed files with 1 additions and 1 deletions

View File

@ -717,7 +717,7 @@ void rate_limited_udp_socket::on_tick(error_code const& e)
time_duration delta = now - m_last_tick;
m_last_tick = now;
if (m_quota < m_rate_limit) m_quota += m_rate_limit * total_milliseconds(delta) / 1000.f;
if (m_quota < m_rate_limit) m_quota += m_rate_limit * total_milliseconds(delta) / 1000;
if (m_queue.empty()) return;