systeminformation 5.11.23 → 5.11.26

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/cpu.js CHANGED
@@ -713,8 +713,12 @@ function getCpu() {
713
713
  // const coresPerSocketInt = parseInt(util.getValue(lines, 'cores(s) per socket') || '1', 10);
714
714
  const processors = util.getValue(lines, 'socket(s)') || '1';
715
715
  let threadsPerCoreInt = parseInt(threadsPerCore, 10);
716
- let processorsInt = parseInt(processors, 10);
717
- result.physicalCores = result.cores / threadsPerCoreInt;
716
+ let processorsInt = parseInt(processors, 10) || 1;
717
+ const cpus = (parseInt(util.getValue(lines, 'cpu(s)'), 10) || 1);
718
+ const coresPerSocket = parseInt(util.getValue(lines, 'core(s) per socket'), 10);
719
+ result.physicalCores = coresPerSocket ? coresPerSocket * processorsInt : result.cores / threadsPerCoreInt;
720
+ // result.performanceCores = threadsPerCoreInt > 1 ? result.cores - result.physicalCores : result.cores;
721
+ // result.efficientCores = threadsPerCoreInt > 1 ? result.cores - (threadsPerCoreInt * result.performanceCores) : 0;
718
722
  result.processors = processorsInt;
719
723
  result.governor = util.getValue(lines, 'governor') || '';
720
724
 
package/lib/filesystem.js CHANGED
@@ -50,7 +50,7 @@ function fsSize(callback) {
50
50
  }
51
51
 
52
52
  function isLinuxTmpFs(fs) {
53
- const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged', 'fuse.'];
53
+ const linuxTmpFileSystems = ['rootfs', 'unionfs', 'squashfs', 'cramfs', 'initrd', 'initramfs', 'devtmpfs', 'tmpfs', 'udev', 'devfs', 'specfs', 'type', 'appimaged'];
54
54
  let result = false;
55
55
  linuxTmpFileSystems.forEach(linuxFs => {
56
56
  if (fs.toLowerCase().indexOf(linuxFs) >= 0) result = true;
@@ -63,7 +63,7 @@ function fsSize(callback) {
63
63
  if (stdout.toString().toLowerCase().indexOf('filesystem')) {
64
64
  let removeLines = 0;
65
65
  for (let i = 0; i < lines.length; i++) {
66
- if (line[i] && lines[i].toLowerCase().startsWith('filesystem')) {
66
+ if (lines[i] && lines[i].toLowerCase().startsWith('filesystem')) {
67
67
  removeLines = i;
68
68
  }
69
69
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "systeminformation",
3
- "version": "5.11.23",
3
+ "version": "5.11.26",
4
4
  "description": "Advanced, lightweight system and OS information library",
5
5
  "license": "MIT",
6
6
  "author": "Sebastian Hildebrandt <hildebrandt@plus-innovations.com> (https://plus-innovations.com)",