Merge pull request #126 from lucamarche-iz1mlt/patch-1

Fixed CPU load if not run as daemon
This commit is contained in:
LX3JL 2020-04-06 12:42:45 +02:00 committed by GitHub
commit e18010f66c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -122,7 +122,8 @@ int main(int argc, const char * argv[])
// wait any key
for (;;)
{
std::cin.get();
// sleep 60 seconds
CTimePoint::TaskSleepFor(60000);
#ifdef DEBUG_DUMPFILE
g_Reflector.m_DebugFile.close();
#endif