Calculate plot timeline taking active time span into account.

This commit is contained in:
Bartosz Taudul 2023-03-03 22:36:04 +01:00
parent 3ed543a1b7
commit 5ff809cc0a
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -55,7 +55,7 @@ void TimelineItemPlot::HeaderTooltip( const char* label ) const
const auto first = RangeBegin();
const auto last = RangeEnd();
const auto activity = last - first;
const auto traceLen = m_worker.GetLastTime();
const auto traceLen = m_worker.GetLastTime() - m_worker.GetFirstTime();
TextFocused( "Appeared at", TimeToString( first ) );
TextFocused( "Last event at", TimeToString( last ) );