mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-12 05:02:31 +00:00
* 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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user