Don't print health report if CUDA backend disabled.

This commit is contained in:
XMRig 2019-11-15 18:09:09 +07:00
parent aeb2c6e8ec
commit 5431601cef

View File

@ -457,9 +457,11 @@ 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();
if (isEnabled()) {
auto seconds = d_ptr->controller->config()->healthPrintTime();
if (seconds && ticks && (ticks % (seconds * 2)) == 0) {
d_ptr->printHealth();
}
}
# endif
}