mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-10-08 23:29:21 +00:00
* 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:
@@ -76,7 +76,7 @@ print_ddhhmm(char* buf, unsigned int length, time_t t) {
|
|||||||
unsigned int s;
|
unsigned int s;
|
||||||
|
|
||||||
if (t / (24 * 3600) < 100)
|
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
|
else
|
||||||
s = snprintf(buf, length, "--:--:--");
|
s = snprintf(buf, length, "--:--:--");
|
||||||
|
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ protected:
|
|||||||
inline void
|
inline void
|
||||||
Window::mark_dirty() {
|
Window::mark_dirty() {
|
||||||
priority_queue_erase(&displayScheduler, &m_taskUpdate);
|
priority_queue_erase(&displayScheduler, &m_taskUpdate);
|
||||||
priority_queue_insert(&displayScheduler, &m_taskUpdate, cachedTime + 10);
|
priority_queue_insert(&displayScheduler, &m_taskUpdate, cachedTime + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -111,7 +111,7 @@ DownloadList::activate() {
|
|||||||
if (is_active())
|
if (is_active())
|
||||||
throw std::logic_error("ui::Download::activate() called on an already activated object");
|
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);
|
m_windowTextInput->set_active(false);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user