From 11dc8e67e54c0ba0e1c947f9ab48f9b2fee74424 Mon Sep 17 00:00:00 2001 From: Bartosz Taudul Date: Mon, 17 Jun 2019 19:57:17 +0200 Subject: [PATCH] Change broadcast rate from 5s to 3s. --- client/TracyProfiler.cpp | 2 +- profiler/src/main.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/client/TracyProfiler.cpp b/client/TracyProfiler.cpp index e2f6f01a..f2edc4d1 100644 --- a/client/TracyProfiler.cpp +++ b/client/TracyProfiler.cpp @@ -1149,7 +1149,7 @@ void Profiler::Worker() if( m_broadcast ) { 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_broadcast->Send( 8087, broadcastMsg, broadcastLen ); diff --git a/profiler/src/main.cpp b/profiler/src/main.cpp index ec432f30..8fa57490 100644 --- a/profiler/src/main.cpp +++ b/profiler/src/main.cpp @@ -319,7 +319,7 @@ int main( int argc, char** argv ) while( it != clients.end() ) { const auto diff = t - it->second.time; - if( diff > 10000 ) // 10s + if( diff > 6000 ) // 6s { it = clients.erase( it ); }