systeminformation
Advanced tools
Comparing version 5.18.4 to 5.18.5
@@ -645,8 +645,12 @@ 'use strict'; | ||
if (os.arch() === 'arm64') { | ||
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n'); | ||
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length; | ||
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length; | ||
result.socket = 'SOC'; | ||
result.efficiencyCores = efficiencyCores; | ||
result.performanceCores = performanceCores; | ||
try { | ||
const clusters = execSync('ioreg -c IOPlatformDevice -d 3 -r | grep cluster-type').toString().split('\n'); | ||
const efficiencyCores = clusters.filter(line => line.indexOf('"E"') >= 0).length; | ||
const performanceCores = clusters.filter(line => line.indexOf('"P"') >= 0).length; | ||
result.efficiencyCores = efficiencyCores; | ||
result.performanceCores = performanceCores; | ||
} catch (e) { | ||
util.noop(); | ||
} | ||
} | ||
@@ -653,0 +657,0 @@ if (countProcessors) { |
{ | ||
"name": "systeminformation", | ||
"version": "5.18.4", | ||
"version": "5.18.5", | ||
"description": "Advanced, lightweight system and OS information library", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
727947
15379