Merge pull request #2392 from joakim-hove/schedule-prt

Make sure a confusing last report step message is not written out
This commit is contained in:
Joakim Hove 2021-03-29 15:27:36 +02:00 committed by GitHub
commit 0f59fe900b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -379,14 +379,15 @@ void Schedule::iterateScheduleSection(std::size_t load_start, std::size_t load_e
start_date,
days_total));
logger(fmt::format("{}Initializing report step {}/{} at {} ({} {}) - line {}",
prefix,
report_step + 1,
this->m_sched_deck.size() - 1,
start_date,
days_total,
time_unit,
block.location().lineno));
if (report_step < (load_end - 1))
logger(fmt::format("{}Initializing report step {}/{} at {} ({} {}) - line {}",
prefix,
report_step + 1,
this->m_sched_deck.size() - 1,
start_date,
days_total,
time_unit,
block.location().lineno));
}
this->create_next(block);