Added "health-print-time" option.

This commit is contained in:
XMRig 2019-11-01 04:08:52 +07:00
parent 1cb4d73fe3
commit 26ed6254dc
11 changed files with 78 additions and 12 deletions

View file

@ -494,7 +494,8 @@ void xmrig::Miner::onTimer(const Timer *)
d_ptr->maxHashrate[d_ptr->algorithm] = std::max(d_ptr->maxHashrate[d_ptr->algorithm], maxHashrate);
if ((d_ptr->ticks % (d_ptr->controller->config()->printTime() * 2)) == 0) {
auto seconds = d_ptr->controller->config()->printTime();
if (seconds && (d_ptr->ticks % (seconds * 2)) == 0) {
printHashrate(false);
}