Added manual (e key) health reports.

This commit is contained in:
XMRig 2019-11-01 00:09:28 +07:00
parent f110b5000b
commit 1cb4d73fe3
9 changed files with 89 additions and 26 deletions

View file

@ -328,6 +328,34 @@ xmrig::Job xmrig::Miner::job() const
}
void xmrig::Miner::execCommand(char command)
{
switch (command) {
case 'h':
case 'H':
printHashrate(true);
break;
case 'p':
case 'P':
setEnabled(false);
break;
case 'r':
case 'R':
setEnabled(true);
break;
default:
break;
}
for (auto backend : d_ptr->backends) {
backend->execCommand(command);
}
}
void xmrig::Miner::pause()
{
d_ptr->active = false;