mirror of
https://github.com/Icinga/icinga2.git
synced 2025-07-22 13:14:32 +02:00
Explicitly use long with boost::posix_time
This commit is contained in:
parent
8b488eb00f
commit
e3ecf83bfb
@ -266,7 +266,7 @@ void Timer::TimerThreadProc(void)
|
|||||||
|
|
||||||
if (wait > 0.01) {
|
if (wait > 0.01) {
|
||||||
/* Wait for the next timer. */
|
/* Wait for the next timer. */
|
||||||
l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
|
l_TimerCV.timed_wait(lock, boost::posix_time::milliseconds(long(wait * 1000)));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -130,7 +130,7 @@ void CheckerComponent::CheckThreadProc(void)
|
|||||||
|
|
||||||
if (wait > 0) {
|
if (wait > 0) {
|
||||||
/* Wait for the next check. */
|
/* Wait for the next check. */
|
||||||
m_CV.timed_wait(lock, boost::posix_time::milliseconds(wait * 1000));
|
m_CV.timed_wait(lock, boost::posix_time::milliseconds(long(wait * 1000)));
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -114,7 +114,7 @@ Dictionary::Ptr EventQueue::WaitForEvent(void *client, double timeout)
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!m_CV.timed_wait(lock, boost::posix_time::milliseconds(timeout * 1000)))
|
if (!m_CV.timed_wait(lock, boost::posix_time::milliseconds(long(timeout * 1000))))
|
||||||
return Dictionary::Ptr();
|
return Dictionary::Ptr();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user