* More fiddling of the throttle code.

* Fixed a bug that caused idle looping due to epoll_wait timeout using
msecs rather than usecs resolution.


git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@590 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
rakshasa
2005-10-31 15:40:50 +00:00
parent ce411252ac
commit 1a68177eca
7 changed files with 21 additions and 9 deletions
+7 -1
View File
@@ -44,6 +44,8 @@
#include "canvas.h"
#include "window_statusbar.h"
extern uint32_t countTicks;
namespace display {
WindowStatusbar::WindowStatusbar(core::Manager* c) :
@@ -80,7 +82,9 @@ WindowStatusbar::redraw() {
(int)torrent::get_listen_port(),
!torrent::get_bind_address().empty() ? (" Bind: " + torrent::get_bind_address()).c_str() : "");
pos = snprintf(buf, 128, "[U %i/%i][S %i/%i/%i][F %i/%i]",
// pos = snprintf(buf, 128, "[U %i/%i][S %i/%i/%i][F %i/%i]",
pos = snprintf(buf, 128, "%i [U %i/%i][S %i/%i/%i][F %i/%i]",
countTicks,
torrent::currently_unchoked(),
torrent::max_unchoked(),
torrent::get_total_handshakes(),
@@ -89,6 +93,8 @@ WindowStatusbar::redraw() {
torrent::get_open_files(),
torrent::get_max_open_files());
countTicks = 0;
m_canvas->print(m_canvas->get_width() - pos, 0, "%s", buf);
}