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

@ -452,6 +452,13 @@ void xmrig::CudaBackend::stop()
void xmrig::CudaBackend::tick(uint64_t ticks)
{
d_ptr->workers.tick(ticks);
# ifdef XMRIG_FEATURE_NVML
auto seconds = d_ptr->controller->config()->healthPrintTime();
if (seconds && ticks && (ticks % (seconds * 2)) == 0) {
d_ptr->printHealth();
}
# endif
}