1
0
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:
Bartosz Taudul
2020-09-20 22:15:10 +02:00
parent f9c1b63a3b
commit 5c826c2723
3 changed files with 5 additions and 4 deletions
+2 -1
View File
@@ -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 );
}
}