mirror of
https://github.com/xmrig/xmrig.git
synced 2025-12-07 07:55:04 -05:00
Don't print health report if CUDA backend disabled.
This commit is contained in:
@@ -457,9 +457,11 @@ void xmrig::CudaBackend::tick(uint64_t ticks)
|
|||||||
d_ptr->workers.tick(ticks);
|
d_ptr->workers.tick(ticks);
|
||||||
|
|
||||||
# ifdef XMRIG_FEATURE_NVML
|
# ifdef XMRIG_FEATURE_NVML
|
||||||
auto seconds = d_ptr->controller->config()->healthPrintTime();
|
if (isEnabled()) {
|
||||||
if (seconds && ticks && (ticks % (seconds * 2)) == 0) {
|
auto seconds = d_ptr->controller->config()->healthPrintTime();
|
||||||
d_ptr->printHealth();
|
if (seconds && ticks && (ticks % (seconds * 2)) == 0) {
|
||||||
|
d_ptr->printHealth();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
# endif
|
# endif
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user