systeminformation 5.9.8 → 5.9.12
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/README.md +5 -0
- package/lib/battery.js +1 -1
- package/lib/cpu.js +44 -15
- package/lib/docker.js +6 -1
- package/lib/filesystem.js +1269 -1265
- package/lib/graphics.js +3 -3
- package/lib/index.d.ts +59 -23
- package/lib/memory.js +7 -7
- package/lib/network.js +1674 -1589
- package/lib/osinfo.js +1149 -1150
- package/lib/system.js +841 -839
- package/lib/users.js +36 -29
- package/lib/util.js +2 -1
- package/package.json +1 -1
- package/CHANGELOG.md +0 -681
package/README.md
CHANGED
|
@@ -163,6 +163,7 @@ Full function reference with examples can be found at [https://systeminformation
|
|
|
163
163
|
| | version | X | X | X | X | | version |
|
|
164
164
|
| | releaseDate | X | X | | X | | release date |
|
|
165
165
|
| | revision | X | X | | X | | revision |
|
|
166
|
+
| | serial | X | | | X | | serial |
|
|
166
167
|
| si.baseboard(cb) | {...} | X | X | X | X | | baseboard information |
|
|
167
168
|
| | manufacturer | X | X | X | X | | e.g. 'ASUS' |
|
|
168
169
|
| | model | X | X | X | X | | model / product name |
|
|
@@ -888,6 +889,8 @@ To be able to measure temperature on macOS I created a little additional package
|
|
|
888
889
|
in NPM with `optionalDependencies` I unfortunately was getting unexpected warnings on other platforms.
|
|
889
890
|
So I decided to drop this optional dependency for macOS - so by default, you will not get correct values.
|
|
890
891
|
|
|
892
|
+
This additional package will unfortunately NOT work on Apple Silicon M1 machines.
|
|
893
|
+
|
|
891
894
|
But if you need to detect macOS temperature just run the following additional
|
|
892
895
|
installation command:
|
|
893
896
|
|
|
@@ -976,6 +979,8 @@ Written by Sebastian Hildebrandt [sebhildebrandt](https://github.com/sebhildebra
|
|
|
976
979
|
- Miłosz Dźwigała [mily20001](https://github.com/mily20001)
|
|
977
980
|
- cconley717 [cconley717](https://github.com/cconley717)
|
|
978
981
|
- Maria Camila Cubides [MariaCamilaCubides](https://github.com/MariaCamilaCubides)
|
|
982
|
+
- Aleksander Krasnicki [plakak](https://github.com/plakak)
|
|
983
|
+
- Alexis Tyler [OmgImAlexis](https://github.com/OmgImAlexis)
|
|
979
984
|
|
|
980
985
|
OSX Temperature: credits here are going to:
|
|
981
986
|
|
package/lib/battery.js
CHANGED
|
@@ -160,7 +160,7 @@ module.exports = function (callback) {
|
|
|
160
160
|
}
|
|
161
161
|
}
|
|
162
162
|
if (_freebsd || _openbsd || _netbsd) {
|
|
163
|
-
exec('sysctl hw.acpi.battery hw.acpi.acline', function (error, stdout) {
|
|
163
|
+
exec('sysctl -i hw.acpi.battery hw.acpi.acline', function (error, stdout) {
|
|
164
164
|
let lines = stdout.toString().split('\n');
|
|
165
165
|
const batteries = parseInt('0' + util.getValue(lines, 'hw.acpi.battery.units'), 10);
|
|
166
166
|
const percent = parseInt('0' + util.getValue(lines, 'hw.acpi.battery.life'), 10);
|
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
|
|
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
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
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(() => {
|