diff --git a/CHANGELOG.md b/CHANGELOG.md index 9c20c89..e829d7b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -99,6 +99,7 @@ Other changes | Version | Date | Comment | | -------------- | -------------- | -------- | +| 3.32.4 | 2017-11-02 | AMD cpu base frequencies table also for windows | | 3.32.3 | 2017-11-02 | code cleanup, AMD cpu base frequencies table | | 3.32.2 | 2017-11-01 | bugfix JSON.parse error `blockDevices()` | | 3.32.1 | 2017-10-23 | updated docs | diff --git a/lib/cpu.js b/lib/cpu.js index e9a5755..f97fb64 100644 --- a/lib/cpu.js +++ b/lib/cpu.js @@ -242,7 +242,7 @@ function getCpu() { result.speed = parseFloat(result.speed.replace(/GHz+/g, '').trim()).toFixed(2); _cpu_speed = result.speed; } else { - result.brand = name.split('@')[0].trim(); + result.brand = name.trim(); result.speed = 0; } result = cpuBrandManufacturer(result); @@ -256,6 +256,9 @@ function getCpu() { result.vendor = util.getValue(lines, 'manufacturer', '='); result.speedmax = Math.round(parseFloat(util.getValue(lines, 'maxclockspeed', '=').replace(/,/g, '.')) / 10.0) / 100; result.speedmax = result.speedmax ? parseFloat(result.speedmax).toFixed(2) : ''; + if (!result.speed && result.brand.indexOf('AMD') > -1) { + result.speed = getAMDSpeed(result.brand); + } if (!result.speed) { result.speed = result.speedmax; }