From 3989ae897571cc4e9b98a4ba6527d58efa29bf02 Mon Sep 17 00:00:00 2001 From: rakshasa Date: Mon, 19 Dec 2005 20:58:13 +0000 Subject: [PATCH] * Disabled setting of uninterested when no more chunks can be requested, this needs to be fixed. * Minor adjustments to the usage of rak::priority_queue_insert. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@611 e378c898-3ddf-0310-93e7-cc216c733640 --- src/display/utils.cc | 2 +- src/display/window.h | 2 +- src/ui/download_list.cc | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/display/utils.cc b/src/display/utils.cc index ab09a7c0..0d23a6ae 100644 --- a/src/display/utils.cc +++ b/src/display/utils.cc @@ -76,7 +76,7 @@ print_ddhhmm(char* buf, unsigned int length, time_t t) { unsigned int s; if (t / (24 * 3600) < 100) - s = snprintf(buf, length, "%2li:%02li:%02li", t / (24 * 3600), (t / 3600) % 24, (t / 60) % 60); + s = snprintf(buf, length, "%2i:%02i:%02i", (int)t / (24 * 3600), ((int)t / 3600) % 24, ((int)t / 60) % 60); else s = snprintf(buf, length, "--:--:--"); diff --git a/src/display/window.h b/src/display/window.h index 3d98c9ee..f85ed0e4 100644 --- a/src/display/window.h +++ b/src/display/window.h @@ -93,7 +93,7 @@ protected: inline void Window::mark_dirty() { priority_queue_erase(&displayScheduler, &m_taskUpdate); - priority_queue_insert(&displayScheduler, &m_taskUpdate, cachedTime + 10); + priority_queue_insert(&displayScheduler, &m_taskUpdate, cachedTime + 1); } } diff --git a/src/ui/download_list.cc b/src/ui/download_list.cc index cc0b8c47..16a5e99e 100644 --- a/src/ui/download_list.cc +++ b/src/ui/download_list.cc @@ -111,7 +111,7 @@ DownloadList::activate() { if (is_active()) throw std::logic_error("ui::Download::activate() called on an already activated object"); - priority_queue_insert(&taskScheduler, &m_taskUpdate, cachedTime + 1000000); + priority_queue_insert(&taskScheduler, &m_taskUpdate, cachedTime); m_windowTextInput->set_active(false);