* More work on the new throttle code.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@589 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-10-29 22:54:08 +00:00
parent 5137aade10
commit ce411252ac
4 changed files with 1 additions and 15 deletions
+1 -1
View File
@@ -116,7 +116,7 @@ void
Root::receive_down_throttle(int t) {
m_windowStatusbar->mark_dirty();
torrent::set_down_throttle(torrent::get_down_throttle() + t * 1024);
torrent::set_down_throttle(std::max<int>(torrent::get_down_throttle() + t * 1024, 0));
}
void