Skip to content

Commit

Permalink
minor improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
pasbi committed Oct 15, 2024
1 parent 5c57050 commit 63f64c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -215,8 +215,8 @@ std::chrono::minutes Plan::planned_normal_working_time(const Period& period) con
{
using std::chrono_literals::operator""min;
auto result = 0min;
for (int day = 0; day <= period.days(); ++day) {
result += planned_normal_working_time(period.begin().addDays(day));
for (const auto date : period.dates()) {
result += planned_normal_working_time(date);
}
return result;
}
Expand Down

0 comments on commit 63f64c5

Please sign in to comment.