Change broadcast rate from 5s to 3s.

This commit is contained in:
Bartosz Taudul 2019-06-17 19:57:17 +02:00
parent 6bf8081f5b
commit 11dc8e67e5
2 changed files with 2 additions and 2 deletions

View File

@ -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 );

View File

@ -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 );
}