Fixed CPU load if not run as daemon

pull/1/head
Luca Marchesano 7 years ago committed by GitHub
parent 12eebc9011
commit c6a5ee4c45
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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();
g_Reflector.m_DebugFile.open("/Users/jeanluc/Desktop/dmrdebug.txt");

Loading…
Cancel
Save

Powered by TurnKey Linux.