Open Martinfx opened 1 year ago
here is patch:
--- src/FmRdsSimulatorImpl.cpp.orig 2021-04-05 15:00:09 UTC
+++ src/FmRdsSimulatorImpl.cpp
@@ -245,7 +245,7 @@ void FmRdsSimulatorImpl::stop() {
void FmRdsSimulatorImpl::_start() {
TRACE("Entered Method");
- alarm->expires_from_now(boost::posix_time::milliseconds(CALLBACK_INTERVAL));
+ alarm->expires_from_now(boost::posix_time::milliseconds(static_cast<int64_t>(CALLBACK_INTERVAL)));
io.run();
TRACE("Leaving Method");
}
@@ -280,14 +280,14 @@ void FmRdsSimulatorImpl::dataGrab(const boost::system:
TRACE("Entered Method");
TRACE("Checking Timer isn't overdue by a full cycle");
- if ( (alarm->expires_from_now() + boost::posix_time::milliseconds(CALLBACK_INTERVAL)).is_negative() ) {
+ if ( (alarm->expires_from_now() + boost::posix_time::milliseconds(static_cast<int64_t>(CALLBACK_INTERVAL))).is_negative() ) {
//TODO: Should this be a warning or an error? Or an exception?
WARN("Data delivery is lagging from real-time. Consider reducing the number of input files.");
}
TRACE("Reseting alarm");
// Reset timer
- alarm->expires_at(alarm->expires_at() + boost::posix_time::milliseconds(CALLBACK_INTERVAL));
+ alarm->expires_at(alarm->expires_at() + boost::posix_time::milliseconds(static_cast<int64_t>(CALLBACK_INTERVAL)));
Hi, I have a problem with this issue. FreeBSD 13.1-RELEASE-p1 FreeBSD 13.1-RELEASE-p1 GENERIC amd64