Ticket #5189: speedlimit_3658.patch
File speedlimit_3658.patch, 673 bytes (added by , 15 years ago) |
---|
-
src/engine/ratelimiter.cpp
60 60 { 61 61 ret = m_pOptions->GetOptionVal(OPTION_SPEEDLIMIT_INBOUND + direction) * 1024; 62 62 } 63 else 64 { 65 ret = 0; 66 } 63 67 64 68 return ret; 65 69 } … … 147 151 if (!m_objectList.size()) 148 152 continue; 149 153 150 wxLongLong limit = GetLimit((enum rate_direction)i) ;154 wxLongLong limit = GetLimit((enum rate_direction)i) / 1024; 151 155 if (limit == 0) 152 156 { 153 157 for (std::list<CRateLimiterObject*>::iterator iter = m_objectList.begin(); iter != m_objectList.end(); iter++)