#11285 GRPC: fix high CPU usage in console application

Increase polling interval to avoid using one core constantly.

Fixes #11285.
This commit is contained in:
Kristian Bendiksen 2024-03-13 10:56:58 +01:00 committed by Magne Sjaastad
parent 76df7e8631
commit b595487d23

View File

@ -46,7 +46,7 @@ RiaGrpcConsoleApplication::RiaGrpcConsoleApplication( int& argc, char** argv )
{
m_idleTimer = new QTimer( this );
connect( m_idleTimer, SIGNAL( timeout() ), this, SLOT( doIdleProcessing() ) );
m_idleTimer->start( 0 );
m_idleTimer->start( 5 );
}
//--------------------------------------------------------------------------------------------------