Print error message when MSR mod fails

Make sure user knows that hashrate is worse than it could be.
This commit is contained in:
SChernykh
2020-06-26 19:54:06 +02:00
parent 683ca745a8
commit 038629c093
2 changed files with 6 additions and 0 deletions

View File

@@ -228,6 +228,9 @@ void xmrig::Rx::msrInit(const RxConfig &config)
if (wrmsr(preset, config.rdmsr())) {
LOG_NOTICE(CLEAR "%s" GREEN_BOLD_S "register values for \"%s\" preset has been set successfully" BLACK_BOLD(" (%" PRIu64 " ms)"), tag, config.msrPresetName(), Chrono::steadyMSecs() - ts);
}
else {
LOG_ERR(CLEAR "%s" RED_BOLD_S "FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW", tag);
}
}

View File

@@ -361,6 +361,9 @@ void xmrig::Rx::msrInit(const RxConfig &config)
if (wrmsr(preset, config.rdmsr())) {
LOG_NOTICE(CLEAR "%s" GREEN_BOLD_S "register values for \"%s\" preset has been set successfully" BLACK_BOLD(" (%" PRIu64 " ms)"), tag, config.msrPresetName(), Chrono::steadyMSecs() - ts);
}
else {
LOG_ERR(CLEAR "%s" RED_BOLD_S "FAILED TO APPLY MSR MOD, HASHRATE WILL BE LOW", tag);
}
}