From 18cd5342dfff1b2bd89c972d2182ae8f95abcdd7 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Sun, 4 Jun 2006 14:17:23 +0000 Subject: [PATCH] * Moved Delegator over to using the new Block classes. * Fixed alignment of the ratio display. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@710 e378c898-3ddf-0310-93e7-cc216c733640 --- src/display/utils.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display/utils.cc b/src/display/utils.cc index 35fa96e8..f6c9587b 100644 --- a/src/display/utils.cc +++ b/src/display/utils.cc @@ -89,7 +89,7 @@ print_ddhhmm(char* first, char* last, time_t t) { if (t / (24 * 3600) < 100) return print_buffer(first, last, "%2id %2i:%02i", (int)t / (24 * 3600), ((int)t / 3600) % 24, ((int)t / 60) % 60); else - return print_buffer(first, last, "--:--:--"); + return print_buffer(first, last, "--d --:--"); } char* @@ -147,7 +147,7 @@ print_download_info(char* first, char* last, core::Download* d) { first = print_buffer(first, last, " "); first = print_download_time_left(first, last, d); } else { - first = print_buffer(first, last, " "); + first = print_buffer(first, last, " "); } if (d->download()->bytes_done() > 0) @@ -196,7 +196,7 @@ print_download_time_left(char* first, char* last, core::Download* d) { uint32_t rate = d->download()->down_rate()->rate(); if (rate < 512) - return print_buffer(first, last, "--:--:--"); + return print_buffer(first, last, "--d --:--"); time_t remaining = (d->download()->bytes_total() - d->download()->bytes_done()) / (rate & ~(uint32_t)(512 - 1));