mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-10 02:31:48 +00:00
Fix last time retrieval.
This commit is contained in:
parent
031818dff6
commit
7ffa987857
@ -422,7 +422,14 @@ uint64_t View::GetLastTime() const
|
||||
if( !v.timeline.empty() )
|
||||
{
|
||||
auto ev = v.timeline.back();
|
||||
if( ev->end > (int64_t)last ) last = ev->end;
|
||||
if( ev->end == -1 )
|
||||
{
|
||||
if( ev->start > last ) last = ev->start;
|
||||
}
|
||||
else if( ev->end > last )
|
||||
{
|
||||
last = ev->end;
|
||||
}
|
||||
}
|
||||
}
|
||||
return last;
|
||||
|
Loading…
Reference in New Issue
Block a user