mirror of
https://github.com/aristocratos/btop.git
synced 2024-05-15 18:03:06 +12:00
fix CPU name
This commit is contained in:
parent
01a1dda734
commit
ddb2fb0fac
|
@ -231,9 +231,9 @@ namespace Cpu {
|
|||
name += n + ' ';
|
||||
}
|
||||
name.pop_back();
|
||||
for (const auto ® : {regex("Processor"), regex("CPU"), regex("\\(R\\)"), regex("\\(TM\\)"), regex("Intel"),
|
||||
regex("AMD"), regex("Core"), regex("\\d?\\.?\\d+[mMgG][hH][zZ]")}) {
|
||||
name = std::regex_replace(name, reg, "");
|
||||
for (const auto& replace : {"Processor", "CPU", "(R)", "(TM)", "Intel", "AMD", "Core"}) {
|
||||
name = s_replace(name, replace, "");
|
||||
name = s_replace(name, " ", " ");
|
||||
}
|
||||
name = trim(name);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue