mirror of
https://github.com/wolfpld/tracy.git
synced 2025-03-20 07:40:02 +08:00
Send signed active time in broadcast message.
This allows special treatment of negative values.
This commit is contained in:
@@ -1390,7 +1390,8 @@ void Profiler::Worker()
|
||||
{
|
||||
lastBroadcast = t;
|
||||
const auto ts = std::chrono::duration_cast<std::chrono::seconds>( std::chrono::system_clock::now().time_since_epoch() ).count();
|
||||
broadcastMsg.activeTime = uint32_t( ts - m_epoch );
|
||||
broadcastMsg.activeTime = int32_t( ts - m_epoch );
|
||||
assert( broadcastMsg.activeTime >= 0 );
|
||||
m_broadcast->Send( broadcastPort, &broadcastMsg, broadcastLen );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user