Extend normalization rules.

This commit is contained in:
XMRig 2021-01-29 18:22:24 +07:00
parent f68b105bd9
commit 7d52bd7454
No known key found for this signature in database
GPG key ID: 446A53638BE94409

View file

@ -231,7 +231,7 @@ void xmrig::DmiMemory::setId(const char *slot, const char *bank)
m_bank = bank; m_bank = bank;
std::cmatch cm; std::cmatch cm;
if (std::regex_match(slot, cm, std::regex("^Channel([A-Z])-DIMM(\\d+)$"))) { if (std::regex_match(slot, cm, std::regex("^Channel([A-Z])[-_]DIMM(\\d+)$", std::regex_constants::icase))) {
m_id = fmt::format(kIdFormat, cm.str(1), cm.str(2)).c_str(); m_id = fmt::format(kIdFormat, cm.str(1), cm.str(2)).c_str();
} }
else if (std::regex_search(bank, cm, std::regex("CHANNEL ([A-Z])$"))) { else if (std::regex_search(bank, cm, std::regex("CHANNEL ([A-Z])$"))) {