diff --git a/src/sydevs/systems/interactive_system.h b/src/sydevs/systems/interactive_system.h index 7224fa9..5512613 100644 --- a/src/sydevs/systems/interactive_system.h +++ b/src/sydevs/systems/interactive_system.h @@ -187,7 +187,7 @@ duration interactive_system::macro_planned_even { ++frame_index_; planned_dt_ = macro_planned_update(elapsed_dt, injection_, observation_); - if (planned_dt_ <= 0_s) throw std::logic_error("Planned duration between interact events in interactive system (" + full_name() + ") must be positive."); + if (planned_dt_ <= 0_s) throw std::logic_error("Planned duration between interact events in interactive system (" + this->full_name() + ") must be positive."); return planned_dt_; } diff --git a/src/sydevs/systems/real_time_buffer.cpp b/src/sydevs/systems/real_time_buffer.cpp index dbb26ee..0e73e6f 100644 --- a/src/sydevs/systems/real_time_buffer.cpp +++ b/src/sydevs/systems/real_time_buffer.cpp @@ -60,7 +60,7 @@ void real_time_buffer::recompute_planned_clock_duration() auto syn_planned_sim_dt = current_sim_t_.gap(syn_sim_t_) + planned_sim_dt_; auto syn_planned_clk_t = syn_clk_t_ + std::chrono::milliseconds(int64((syn_planned_sim_dt/t_adv_rate_)/1_ms)); float64 syn_planned_clk_dt = std::chrono::duration_cast(syn_planned_clk_t - current_clk_t_).count(); - if (abs(syn_planned_clk_dt - planned_clk_dt_) >= 2.0) { + if (std::abs(syn_planned_clk_dt - planned_clk_dt_) >= 2.0) { ++syn_count_; float64 limited_clk_dt = planned_clk_dt_; if (syn_planned_clk_dt > planned_clk_dt_) {