Update main.cpp

Fix extra CPU usage when the miner is working in the background (without "keyboard/screen")