mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Fix lock time announce/terminate in older traces.
This commit is contained in:
parent
ce997cf6b0
commit
9cf46e6ae6
@ -3864,11 +3864,11 @@ void View::DrawLockHeader( uint32_t id, const LockMap& lockmap, const SourceLoca
|
|||||||
int64_t timeTerminate = lockmap.timeTerminate;
|
int64_t timeTerminate = lockmap.timeTerminate;
|
||||||
if( !lockmap.timeline.empty() )
|
if( !lockmap.timeline.empty() )
|
||||||
{
|
{
|
||||||
if( timeAnnounce == 0 )
|
if( timeAnnounce <= 0 )
|
||||||
{
|
{
|
||||||
timeAnnounce = lockmap.timeline.front().ptr->Time();
|
timeAnnounce = lockmap.timeline.front().ptr->Time();
|
||||||
}
|
}
|
||||||
if( timeTerminate == 0 )
|
if( timeTerminate <= 0 )
|
||||||
{
|
{
|
||||||
timeTerminate = lockmap.timeline.back().ptr->Time();
|
timeTerminate = lockmap.timeline.back().ptr->Time();
|
||||||
}
|
}
|
||||||
@ -11427,11 +11427,11 @@ void View::DrawLockInfoWindow()
|
|||||||
int64_t timeTerminate = lock.timeTerminate;
|
int64_t timeTerminate = lock.timeTerminate;
|
||||||
if( !lock.timeline.empty() )
|
if( !lock.timeline.empty() )
|
||||||
{
|
{
|
||||||
if( timeAnnounce == 0 )
|
if( timeAnnounce <= 0 )
|
||||||
{
|
{
|
||||||
timeAnnounce = lock.timeline.front().ptr->Time();
|
timeAnnounce = lock.timeline.front().ptr->Time();
|
||||||
}
|
}
|
||||||
if( timeTerminate == 0 )
|
if( timeTerminate <= 0 )
|
||||||
{
|
{
|
||||||
timeTerminate = lock.timeline.back().ptr->Time();
|
timeTerminate = lock.timeline.back().ptr->Time();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user