mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-18 18:20:44 +08:00
更改 CPU Core 的匹配方式。
This commit is contained in:
parent
56d8706d29
commit
fab11a93ce
@ -35,7 +35,7 @@ export function getCPUInfo(text) {
|
||||
const companyReg = /Intel|AMD|ARM|Qualcomm|Apple|Samsung|IBM|NVIDIA/;
|
||||
// eslint-disable-next-line max-len, vue/max-len
|
||||
const modelReg = /Xeon|Threadripper|Athlon|Pentium|Celeron|Opteron|Phenom|Turion|Sempron|FX|A-Series|R-Series|EPYC|Ryzen/;
|
||||
const coresReg = /(\d+) (Virtual|Physics) Core/;
|
||||
const coresReg = /(\d+) (Virtual|Physics|Physical) Core/;
|
||||
const companyMatch = text.match(companyReg);
|
||||
const modelMatch = text.match(modelReg);
|
||||
const coresMatch = text.match(coresReg);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user