From 1cf1b5c6311d8d1d71ddc8c00a74b319ee8e9d40 Mon Sep 17 00:00:00 2001 From: Pavel Labath Date: Thu, 17 Jun 2010 15:12:42 +0200 Subject: [PATCH] Fix overflow in ccurl_thread interval caused by 0f213c89 --- src/ccurl_thread.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ccurl_thread.cc b/src/ccurl_thread.cc index 3a9f1a12..f976a9ec 100644 --- a/src/ccurl_thread.cc +++ b/src/ccurl_thread.cc @@ -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");