1
0
mirror of https://github.com/xmrig/xmrig.git synced 2025-12-08 08:23:34 -05:00

Extend normalization rules.

This commit is contained in:
XMRig
2021-01-29 18:22:24 +07:00
parent f68b105bd9
commit 7d52bd7454

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])$"))) {