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 -2
View File
@@ -10,7 +10,7 @@ namespace tracy
constexpr unsigned Lz4CompressBound( unsigned isize ) { return isize + ( isize / 255 ) + 16; }
enum : uint32_t { ProtocolVersion = 40 };
enum : uint32_t { BroadcastVersion = 1 };
enum : uint32_t { BroadcastVersion = 2 };
using lz4sz_t = uint32_t;
@@ -111,7 +111,7 @@ struct BroadcastMessage
uint32_t broadcastVersion;
uint32_t protocolVersion;
uint32_t listenPort;
uint32_t activeTime; // in seconds
int32_t activeTime; // in seconds
char programName[WelcomeMessageProgramNameSize];
};