Skip to content

Commit

Permalink
Local variable naming change.
Browse files Browse the repository at this point in the history
  • Loading branch information
davidhjp01 committed Apr 30, 2024
1 parent 540f0b2 commit 9bb9d45
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/cosim/timer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,9 +36,9 @@ class real_time_timer::impl
const auto newHash = std::hash<real_time_config>()(*config_);
if (newHash != configHashValue_) {
start(currentTime);
auto step_duration_ = config_->sampling_period_to_monitor.load();
if (step_duration_ > 0) {
sampling_period_to_monitor_ = to_duration(config_->sampling_period_to_monitor.load());
auto samping_period = config_->sampling_period_to_monitor.load();
if (samping_period > 0) {
sampling_period_to_monitor_ = to_duration(samping_period);
} else {
sampling_period_to_monitor_ = std::nullopt;
}
Expand Down

0 comments on commit 9bb9d45

Please sign in to comment.