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:
@@ -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])$"))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user