systeminformation 5.9.8 → 5.9.9

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/CHANGELOG.md CHANGED
@@ -40,7 +40,7 @@ We had to make **several interface changes** to keep systeminformation as consis
40
40
 
41
41
  #### Other Improvements and Changes
42
42
 
43
- - `baseboard(): added memMax, memSlots
43
+ - `baseboard()`: added memMax, memSlots
44
44
  - `bios()`: added language and features (linux)
45
45
  - `cpu()`: extended AMD processor list
46
46
  - `cpu()`: extended socket list (win)
@@ -80,12 +80,13 @@ For major (breaking) changes - **version 4, 3 and 2** - see end of page.
80
80
 
81
81
  | Version | Date | Comment |
82
82
  | -------------- | -------------- | -------- |
83
+ | 5.9.9 | 2021-10-27 | `graphics` fixed screen resolution issue (windows) |
83
84
  | 5.9.8 | 2021-10-22 | `wmic` fixed code page issues (windows) |
84
85
  | 5.9.7 | 2021-10-09 | `battery()` fixed typo seperator (windows) |
85
86
  | 5.9.6 | 2021-10-08 | `system()` fixed virtual on WSL2 |
86
87
  | 5.9.5 | 2021-10-08 | `battery()` fixed isCharging (windows) |
87
88
  | 5.9.4 | 2021-09-23 | `processes()` fixed memVsz, Memrss (macOS M1) |
88
- | 5.9.3 | 2021-09-17 | `cpuTemperature()` improved tdie detection (linus) |
89
+ | 5.9.3 | 2021-09-17 | `cpuTemperature()` improved tdie detection (linux) |
89
90
  | 5.9.2 | 2021-09-16 | `graohics()` (macOS), `memLayout()` (win) improvements |
90
91
  | 5.9.1 | 2021-09-15 | `diskLayout()` fix size (macOS) |
91
92
  | 5.9.0 | 2021-09-15 | `graphics()` new XML parser, added properties (macOS) |
package/README.md CHANGED
@@ -888,6 +888,8 @@ To be able to measure temperature on macOS I created a little additional package
888
888
  in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
889
889
  So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
890
890
 
891
+ This additional package will unfortunately NOT work on Apple Silicon M1 machines.
892
+
891
893
  But if you need to detect macOS temperature just run the following additional
892
894
  installation command:
893
895
 
@@ -976,6 +978,8 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
976
978
  - Miłosz Dźwigała [mily20001](https://github.com/mily20001)
977
979
  - cconley717 [cconley717](https://github.com/cconley717)
978
980
  - Maria Camila Cubides [MariaCamilaCubides](https://github.com/MariaCamilaCubides)
981
+ - Aleksander Krasnicki [plakak](https://github.com/plakak)
982
+ - Alexis Tyler [OmgImAlexis](https://github.com/OmgImAlexis)
979
983
 
980
984
  OSX Temperature: credits here are going to:
981
985
 
package/lib/cpu.js CHANGED
@@ -373,10 +373,12 @@ const AMDBaseFrequencies = {
373
373
  '4700G': '3.6',
374
374
  'Pro 4750G': '3.6',
375
375
  '4300U': '2.7',
376
+ '4450U': '2.5',
376
377
  'Pro 4450U': '2.5',
377
378
  '4500U': '2.3',
378
379
  '4600U': '2.1',
379
380
  'PRO 4650U': '2.1',
381
+ '4680U': '2.1',
380
382
  '4600HS': '3.0',
381
383
  '4600H': '3.0',
382
384
  '4700U': '2.0',
@@ -386,6 +388,9 @@ const AMDBaseFrequencies = {
386
388
  '4800H': '2.9',
387
389
  '4900HS': '3.0',
388
390
  '4900H': '3.3',
391
+ '5300U': '2.6',
392
+ '5500U': '2.1',
393
+ '5700U': '1.8',
389
394
 
390
395
  // ZEN2 - EPYC
391
396
  '7232P': '3.1',
@@ -414,6 +419,28 @@ const AMDBaseFrequencies = {
414
419
  '7F52': '3.5',
415
420
  '7F72': '3.2',
416
421
 
422
+ // Epyc (Milan)
423
+
424
+ '7763': '2.45',
425
+ '7713': '2.0',
426
+ '7713P': '2.0',
427
+ '7663': '2.0',
428
+ '7643': '2.3',
429
+ '75F3': '2.95',
430
+ '7543': '2.8',
431
+ '7543P': '2.8',
432
+ '7513': '2.6',
433
+ '7453': '2.75',
434
+ '74F3': '3.2',
435
+ '7443': '2.85',
436
+ '7443P': '2.85',
437
+ '7413': '2.65',
438
+ '73F3': '3.5',
439
+ '7343': '3.2',
440
+ '7313': '3.0',
441
+ '7313P': '3.0',
442
+ '72F3': '3.7',
443
+
417
444
  // ZEN3
418
445
  '5600X': '3.7',
419
446
  '5800X': '3.8',
@@ -421,6 +448,7 @@ const AMDBaseFrequencies = {
421
448
  '5950X': '3.4'
422
449
  };
423
450
 
451
+
424
452
  const socketTypes = {
425
453
  1: 'Other',
426
454
  2: 'Unknown',
@@ -484,6 +512,7 @@ const socketTypes = {
484
512
  60: 'BGA1528',
485
513
  61: 'LGA4189',
486
514
  62: 'LGA1200',
515
+ 63: 'LGA4677',
487
516
  };
488
517
 
489
518
  function cpuBrandManufacturer(res) {
@@ -739,8 +768,8 @@ function getCpu() {
739
768
  const threadCount = util.getValue(lines, 'thread count').trim();
740
769
  const coreCount = util.getValue(lines, 'core count').trim();
741
770
  if (coreCount && threadCount) {
742
- result.cores = threadCount;
743
- result.physicalCores = coreCount;
771
+ result.cores = parseInt(threadCount, 10);
772
+ result.physicalCores = parseInt(coreCount, 10);
744
773
  }
745
774
  resolve(result);
746
775
  });
@@ -1237,7 +1266,7 @@ function cpuFlags(callback) {
1237
1266
  let flags = [];
1238
1267
  if (!error) {
1239
1268
  let parts = stdout.toString().split('\tFlags:');
1240
- const lines = parts.length > 1 ? parts[1].split('\tVersion:')[0].split['\n'] : [];
1269
+ const lines = parts.length > 1 ? parts[1].split('\tVersion:')[0].split('\n') : [];
1241
1270
  lines.forEach(function (line) {
1242
1271
  let flag = (line.indexOf('(') ? line.split('(')[0].toLowerCase() : '').trim().replace(/\t/g, '');
1243
1272
  if (flag) {
@@ -1538,18 +1567,18 @@ function getLoad() {
1538
1567
  }
1539
1568
  result = {
1540
1569
  avgLoad: avgLoad,
1541
- currentload: _current_cpu.currentload,
1542
- currentloadUser: _current_cpu.currentloadUser,
1543
- currentloadSystem: _current_cpu.currentloadSystem,
1544
- currentloadNice: _current_cpu.currentloadNice,
1545
- currentloadIdle: _current_cpu.currentloadIdle,
1546
- currentloadIrq: _current_cpu.currentloadIrq,
1547
- rawCurrentload: _current_cpu.rawCurrentload,
1548
- rawCurrentloadUser: _current_cpu.rawCurrentloadUser,
1549
- rawCurrentloadSystem: _current_cpu.rawCurrentloadSystem,
1550
- rawCurrentloadNice: _current_cpu.rawCurrentloadNice,
1551
- rawCurrentloadIdle: _current_cpu.rawCurrentloadIdle,
1552
- rawCurrentloadIrq: _current_cpu.rawCurrentloadIrq,
1570
+ currentLoad: _current_cpu.currentLoad,
1571
+ currentLoadUser: _current_cpu.currentLoadUser,
1572
+ currentLoadSystem: _current_cpu.currentLoadSystem,
1573
+ currentLoadNice: _current_cpu.currentLoadNice,
1574
+ currentLoadIdle: _current_cpu.currentLoadIdle,
1575
+ currentLoadIrq: _current_cpu.currentLoadIrq,
1576
+ rawCurrentLoad: _current_cpu.rawCurrentLoad,
1577
+ rawCurrentLoadUser: _current_cpu.rawCurrentLoadUser,
1578
+ rawCurrentLoadSystem: _current_cpu.rawCurrentLoadSystem,
1579
+ rawCurrentLoadNice: _current_cpu.rawCurrentLoadNice,
1580
+ rawCurrentLoadIdle: _current_cpu.rawCurrentLoadIdle,
1581
+ rawCurrentLoadIrq: _current_cpu.rawCurrentLoadIrq,
1553
1582
  cpus: cores
1554
1583
  };
1555
1584
  }
package/lib/docker.js CHANGED
@@ -543,7 +543,12 @@ function dockerContainerStatsSingle(containerID) {
543
543
  blockIO: {
544
544
  r: 0,
545
545
  w: 0
546
- }
546
+ },
547
+ restartCount: 0,
548
+ cpuStats: {},
549
+ precpuStats: {},
550
+ memoryStats: {},
551
+ networks: {},
547
552
  };
548
553
  return new Promise((resolve) => {
549
554
  process.nextTick(() => {