* 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
This commit is contained in:
rakshasa
2005-12-19 20:58:13 +00:00
parent 4e8e5a18df
commit 3989ae8975
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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, "--:--:--");
+1 -1
View File
@@ -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);
}
}
+1 -1
View File
@@ -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);