From 3efadf69ec432f9bac1fb6794ce64453147853d5 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sun, 13 Mar 2005 03:08:13 +0000 Subject: [PATCH] Minor cleanup of the interface. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@352 e378c898-3ddf-0310-93e7-cc216c733640 --- src/display/window_download_list.cc | 4 ++-- src/display/window_download_statusbar.cc | 4 ++-- src/main.cc | 1 + 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/src/display/window_download_list.cc b/src/display/window_download_list.cc index 6cd32181..956b774e 100644 --- a/src/display/window_download_list.cc +++ b/src/display/window_download_list.cc @@ -69,14 +69,14 @@ WindowDownloadList::redraw() { d.get_name().c_str()); if ((*range.first)->is_open() && (*range.first)->is_done()) - m_canvas->print(0, pos++, "%c Torrent: Done %10.1f MiB Rate:%5.1f /%5.1f KiB Uploaded: %.1f MiB", + m_canvas->print(0, pos++, "%c Torrent: Done %10.1f MiB Rate: %5.1f / %5.1f KiB Uploaded: %.1f MiB", range.first == *m_focus ? '*' : ' ', (double)d.get_bytes_total() / (double)(1 << 20), (double)d.get_rate_up() / 1024.0, (double)d.get_rate_down() / 1024.0, (double)d.get_bytes_up() / (double)(1 << 20)); else - m_canvas->print(0, pos++, "%c Torrent: %6.1f / %6.1f MiB Rate:%5.1f /%5.1f KiB Uploaded: %.1f MiB", + m_canvas->print(0, pos++, "%c Torrent: %6.1f / %6.1f MiB Rate: %5.1f / %5.1f KiB Uploaded: %.1f MiB", range.first == *m_focus ? '*' : ' ', (double)d.get_bytes_done() / (double)(1 << 20), (double)d.get_bytes_total() / (double)(1 << 20), diff --git a/src/display/window_download_statusbar.cc b/src/display/window_download_statusbar.cc index e11706d2..98267567 100644 --- a/src/display/window_download_statusbar.cc +++ b/src/display/window_download_statusbar.cc @@ -42,7 +42,7 @@ WindowDownloadStatusbar::redraw() { m_canvas->erase(); if (m_download->get_download().get_chunks_done() != m_download->get_download().get_chunks_total() || !m_download->get_download().is_open()) - m_canvas->print(0, 0, "Torrent: %.1f / %.1f MiB Rate:%5.1f /%5.1f KiB Uploaded: %.1f MiB", + m_canvas->print(0, 0, "Torrent: %.1f / %.1f MiB Rate: %5.1f / %5.1f KiB Uploaded: %.1f MiB", (double)m_download->get_download().get_bytes_done() / (double)(1 << 20), (double)m_download->get_download().get_bytes_total() / (double)(1 << 20), (double)m_download->get_download().get_rate_up() / 1024.0, @@ -50,7 +50,7 @@ WindowDownloadStatusbar::redraw() { (double)m_download->get_download().get_bytes_up() / (double)(1 << 20)); else - m_canvas->print(0, 0, "Torrent: Done %.1f MiB Rate:%5.1f /%5.1f KiB Uploaded: %.1f MiB", + m_canvas->print(0, 0, "Torrent: Done %.1f MiB Rate: %5.1f / %5.1f KiB Uploaded: %.1f MiB", (double)m_download->get_download().get_bytes_total() / (double)(1 << 20), (double)m_download->get_download().get_rate_up() / 1024.0, (double)m_download->get_download().get_rate_down() / 1024.0, diff --git a/src/main.cc b/src/main.cc index f5c2459f..79c8e613 100644 --- a/src/main.cc +++ b/src/main.cc @@ -234,6 +234,7 @@ print_help() { std::cout << " ^d Stop torrent or delete a stopped torrent" << std::endl; std::cout << " ^q Initiate shutdown or skip shutdown process" << std::endl; std::cout << " a,s,d,z,x,c Adjust throttle" << std::endl; + std::cout << " right View torrent" << std::endl; std::cout << std::endl; std::cout << "Download view keys:" << std::endl; std::cout << " spacebar Depends on the current view" << std::endl;