mirror of
https://github.com/Llewellynvdm/conky.git
synced 2024-12-28 13:00:45 +00:00
Fix overflow in ccurl_thread interval caused by 0f213c89
This commit is contained in:
parent
b82250d551
commit
1cf1b5c631
@ -144,7 +144,7 @@ void ccurl_init_thread(ccurl_location_ptr curloc, int interval)
|
|||||||
assert(curloc->result);
|
assert(curloc->result);
|
||||||
#endif /* DEBUG */
|
#endif /* DEBUG */
|
||||||
curloc->p_timed_thread = timed_thread::create(std::bind(ccurl_thread,
|
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) {
|
if (!curloc->p_timed_thread) {
|
||||||
NORM_ERR("curl thread: error creating timed thread");
|
NORM_ERR("curl thread: error creating timed thread");
|
||||||
|
Loading…
Reference in New Issue
Block a user