mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-16 07:02:30 +00:00
* Added resume functions for saving/loading tracker state.
* Added parameter to torrent::resume_save_progress to indicate that only completed files are to be saved. This is used when the torrent is active. * Update the display when priority is changed. git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@746 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -107,11 +107,11 @@ Manager::unschedule(Window* w) {
|
||||
void
|
||||
Manager::adjust_layout() {
|
||||
int staticHeight = std::for_each(begin(), end(),
|
||||
rak::if_then(std::mem_fun(&Window::is_active),
|
||||
rak::accumulate(0, std::mem_fun(&Window::get_min_height)))).m_then.result;
|
||||
rak::if_then(std::mem_fun(&Window::is_active),
|
||||
rak::accumulate(0, std::mem_fun(&Window::get_min_height)))).m_then.result;
|
||||
int countDynamic = std::for_each(begin(), end(),
|
||||
rak::if_then(std::mem_fun(&Window::is_active),
|
||||
rak::accumulate(0, std::mem_fun(&Window::is_dynamic)))).m_then.result;
|
||||
rak::if_then(std::mem_fun(&Window::is_active),
|
||||
rak::accumulate(0, std::mem_fun(&Window::is_dynamic)))).m_then.result;
|
||||
|
||||
int dynamic = std::max(0, Canvas::get_screen_height() - staticHeight);
|
||||
int height = 0, h;
|
||||
@@ -166,8 +166,7 @@ Manager::schedule_update() {
|
||||
|
||||
if (!m_taskUpdate.is_queued() || m_taskUpdate.time() > m_scheduler.top()->time()) {
|
||||
rak::priority_queue_erase(&taskScheduler, &m_taskUpdate);
|
||||
rak::priority_queue_insert(&taskScheduler, &m_taskUpdate,
|
||||
std::max(m_scheduler.top()->time(), m_timeLastUpdate + 50000));
|
||||
rak::priority_queue_insert(&taskScheduler, &m_taskUpdate, std::max(m_scheduler.top()->time(), m_timeLastUpdate + 50000));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user