Make it clearer where the progress information goes.
Also add placeholder text so the progress section isn't empty at startup,
when the progress hasn't been calculated yet.
Signed-off-by: Zygo Blaxell <bees@furryterror.org>
TaskMaster::print_queue(ofs);
#endif
+ ofs << "PROGRESS:\n";
ofs << get_progress();
ofs.close();
BeesContext::get_progress()
{
unique_lock<mutex> lock(m_progress_mtx);
+ if (m_progress_str.empty()) {
+ return "[No progess estimate available]\n";
+ }
return m_progress_str;
}