mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-13 21:52:30 +00:00
Added the -i switch.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@306 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -2,14 +2,17 @@
|
||||
|
||||
#include <torrent/torrent.h>
|
||||
|
||||
#include "core/manager.h"
|
||||
|
||||
#include "canvas.h"
|
||||
#include "window_statusbar.h"
|
||||
|
||||
namespace display {
|
||||
|
||||
WindowStatusbar::WindowStatusbar() :
|
||||
WindowStatusbar::WindowStatusbar(core::Manager* c) :
|
||||
Window(new Canvas, false, 1),
|
||||
m_counter(0) {
|
||||
m_counter(0),
|
||||
m_core(c) {
|
||||
}
|
||||
|
||||
void
|
||||
@@ -24,7 +27,7 @@ WindowStatusbar::redraw() {
|
||||
m_canvas->erase();
|
||||
m_canvas->print(0, 0, "Throttle: %i Listen: %s:%i Handshakes: %i Select: %u",
|
||||
(int)torrent::get(torrent::THROTTLE_ROOT_CONST_RATE) / 1024,
|
||||
"",
|
||||
m_core->get_dns().empty() ? "<default>" : m_core->get_dns().c_str(),
|
||||
(int)torrent::get(torrent::LISTEN_PORT),
|
||||
(int)torrent::get(torrent::HANDSHAKES_TOTAL),
|
||||
m_counter);
|
||||
|
||||
@@ -3,16 +3,21 @@
|
||||
|
||||
#include "window.h"
|
||||
|
||||
namespace core {
|
||||
class Manager;
|
||||
}
|
||||
|
||||
namespace display {
|
||||
|
||||
class WindowStatusbar : public Window {
|
||||
public:
|
||||
WindowStatusbar();
|
||||
WindowStatusbar(core::Manager* c);
|
||||
|
||||
virtual void redraw();
|
||||
|
||||
private:
|
||||
int m_counter;
|
||||
int m_counter;
|
||||
core::Manager* m_core;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user