Skip to content

Commit

Permalink
fix: use time_end_, not time_begin_
Browse files Browse the repository at this point in the history
  • Loading branch information
program-- committed Jul 3, 2024
1 parent 73dfd06 commit 05b1caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/forcing/ForcingsEngineDataProvider.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ struct ForcingsEngineDataProvider

long get_data_stop_time() override
{
return std::chrono::duration_cast<std::chrono::seconds>(time_begin_.time_since_epoch()).count();
return std::chrono::duration_cast<std::chrono::seconds>(time_end_.time_since_epoch()).count();
}

long record_duration() override
Expand Down

0 comments on commit 05b1caf

Please sign in to comment.