Commit a9270b43 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Analysis: only print time when available

parent 05f0b6a0
Pipeline #480320 passed with stages
in 3 minutes and 50 seconds
......@@ -415,8 +415,10 @@ void Analysis::run() {
events_prev = m_events;
LOG_PROGRESS(STATUS, "event_loop")
<< "Ev: +" << m_events << " \\" << skipped << " Tr: " << m_tracks << " (" << std::setprecision(3)
<< ((double)m_tracks / m_events)
<< "/ev) t = " << Units::display(m_clipboard->get_persistent("eventStart"), {"ns", "us", "ms", "s"});
<< ((double)m_tracks / m_events) << "/ev)"
<< (m_clipboard->has_persistent("eventStart")
? " t = " + Units::display(m_clipboard->get_persistent("eventStart"), {"ns", "us", "ms", "s"})
: "");
}
// Clear objects from this iteration from the clipboard
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment