1
0
mirror of https://github.com/Llewellynvdm/conky.git synced 2024-12-27 04:32:55 +00:00

Fix overflow in ccurl_thread interval caused by 0f213c89

This commit is contained in:
Pavel Labath 2010-06-17 15:12:42 +02:00
parent b82250d551
commit 1cf1b5c631

View File

@ -144,7 +144,7 @@ void ccurl_init_thread(ccurl_location_ptr curloc, int interval)
assert(curloc->result);
#endif /* DEBUG */
curloc->p_timed_thread = timed_thread::create(std::bind(ccurl_thread,
std::placeholders::_1, curloc), std::chrono::microseconds(long(interval * 1000000)));
std::placeholders::_1, curloc), std::chrono::seconds(interval));
if (!curloc->p_timed_thread) {
NORM_ERR("curl thread: error creating timed thread");