Moved over to a next time based display update.

git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@320 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-03-03 20:09:04 +00:00
parent b840476527
commit fd0c10d962
16 changed files with 48 additions and 74 deletions
+1 -2
View File
@@ -29,8 +29,7 @@ Poll::poll(utils::Timer timeout) {
m_maxFd = std::max(m_maxFd, n);
}
timeout = std::min(timeout, utils::Timer(torrent::get(torrent::TIME_SELECT)));
timeval t = timeout.tval();
timeval t = std::min(timeout, utils::Timer(torrent::get(torrent::TIME_SELECT))).tval();
errno = 0;
m_maxFd = select(m_maxFd + 1, m_readSet, m_writeSet, m_exceptSet, &t);