mirror of
https://github.com/hi2shark/nazhua.git
synced 2026-01-12 15:20:43 +08:00
更改 CPU Core 的匹配方式。
This commit is contained in:
parent
7cf1c7ddf2
commit
bcb916a03c
@ -35,7 +35,7 @@ export function getCPUInfo(text) {
|
|||||||
const companyReg = /Intel|AMD|ARM|Qualcomm|Apple|Samsung|IBM|NVIDIA/;
|
const companyReg = /Intel|AMD|ARM|Qualcomm|Apple|Samsung|IBM|NVIDIA/;
|
||||||
// eslint-disable-next-line max-len, vue/max-len
|
// 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 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 companyMatch = text.match(companyReg);
|
||||||
const modelMatch = text.match(modelReg);
|
const modelMatch = text.match(modelReg);
|
||||||
const coresMatch = text.match(coresReg);
|
const coresMatch = text.match(coresReg);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user