diff --git a/fuse_optimizers/src/fixed_lag_smoother.cpp b/fuse_optimizers/src/fixed_lag_smoother.cpp index 87de2e8fe..a49a674fc 100644 --- a/fuse_optimizers/src/fixed_lag_smoother.cpp +++ b/fuse_optimizers/src/fixed_lag_smoother.cpp @@ -416,7 +416,7 @@ void FixedLagSmoother::processQueue( << lag_expiration.nanoseconds() << ". The queued transaction with timestamp " << element.stamp().nanoseconds() << " from sensor " << element.sensor_name << " has a minimum involved timestamp of " << min_stamp.nanoseconds() << ", which is " - << (lag_expiration - min_stamp).nanoseconds() + << (lag_expiration - min_stamp).seconds() << " seconds too old. Ignoring this transaction."); transaction_riter = erase(pending_transactions_, transaction_riter); } else if ( // NOLINT @@ -442,7 +442,7 @@ void FixedLagSmoother::processQueue( "The queued transaction with timestamp " << element.stamp().nanoseconds() << " and maximum involved stamp of " << max_stamp.nanoseconds() << " from sensor " << element.sensor_name - << " could not be processed after " << (current_time - max_stamp).nanoseconds() + << " could not be processed after " << (current_time - max_stamp).seconds() << " seconds, which is greater than the 'transaction_timeout' value of " << params_.transaction_timeout.nanoseconds() << ". Ignoring this transaction."); transaction_riter = erase(pending_transactions_, transaction_riter);