mirror of
https://github.com/xmrig/xmrig.git
synced 2024-10-30 21:17:52 +00:00
Extend normalization rules.
This commit is contained in:
parent
f68b105bd9
commit
7d52bd7454
1 changed files with 1 additions and 1 deletions
|
@ -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])$"))) {
|
||||||
|
|
Loading…
Reference in a new issue