mirror of
https://github.com/wolfpld/tracy.git
synced 2024-11-26 16:04:34 +00:00
Change broadcast rate from 5s to 3s.
This commit is contained in:
parent
6bf8081f5b
commit
11dc8e67e5
@ -1149,7 +1149,7 @@ void Profiler::Worker()
|
|||||||
if( m_broadcast )
|
if( m_broadcast )
|
||||||
{
|
{
|
||||||
auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
|
auto t = std::chrono::high_resolution_clock::now().time_since_epoch().count();
|
||||||
if( t - m_lastBroadcast > 5000000000 ) // 5s
|
if( t - m_lastBroadcast > 3000000000 ) // 3s
|
||||||
{
|
{
|
||||||
m_lastBroadcast = t;
|
m_lastBroadcast = t;
|
||||||
m_broadcast->Send( 8087, broadcastMsg, broadcastLen );
|
m_broadcast->Send( 8087, broadcastMsg, broadcastLen );
|
||||||
|
@ -319,7 +319,7 @@ int main( int argc, char** argv )
|
|||||||
while( it != clients.end() )
|
while( it != clients.end() )
|
||||||
{
|
{
|
||||||
const auto diff = t - it->second.time;
|
const auto diff = t - it->second.time;
|
||||||
if( diff > 10000 ) // 10s
|
if( diff > 6000 ) // 6s
|
||||||
{
|
{
|
||||||
it = clients.erase( it );
|
it = clients.erase( it );
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user