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);