systeminformation 6.0.0-beta.21 → 6.0.0-beta.22
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/dist/linux/disks-io.js +1 -1
- package/dist/linux/fs-stats.js +5 -2
- package/package.json +1 -1
package/dist/linux/disks-io.js
CHANGED
|
@@ -18,7 +18,7 @@ const disksIO = async () => {
|
|
|
18
18
|
let wWaitTime = 0;
|
|
19
19
|
let tWaitTime = 0;
|
|
20
20
|
try {
|
|
21
|
-
const disks = (await (0, promises_1.readdir)('/sys/block')).filter((dev) => !/^(loop|ram|dm-|md|sr|fd|nbd)/.test(dev) && (0, security_1.isSafePathSegment)(dev));
|
|
21
|
+
const disks = (await (0, promises_1.readdir)('/sys/block')).filter((dev) => !/^(loop|ram|zram|dm-|md|sr|fd|nbd|zd)/.test(dev) && (0, security_1.isSafePathSegment)(dev));
|
|
22
22
|
const lines = await Promise.all(disks.map((dev) => (0, files_1.readSysfs)(`/sys/block/${dev}/stat`)));
|
|
23
23
|
lines.forEach(function (line) {
|
|
24
24
|
if (!line) {
|
package/dist/linux/fs-stats.js
CHANGED
|
@@ -17,8 +17,11 @@ const fsStats = async () => {
|
|
|
17
17
|
let rx = 0;
|
|
18
18
|
let wx = 0;
|
|
19
19
|
try {
|
|
20
|
-
({ stdout } = await (0, exec_1.exec)('lsblk -
|
|
21
|
-
const lines = stdout
|
|
20
|
+
({ stdout } = await (0, exec_1.exec)('lsblk -rno KNAME,FSTYPE,MOUNTPOINT 2>/dev/null', const_1.execOptsLinux));
|
|
21
|
+
const lines = stdout
|
|
22
|
+
.toString()
|
|
23
|
+
.split('\n')
|
|
24
|
+
.filter((line) => (line.indexOf('/') >= 0 || / zfs_member( |$)/.test(line)) && !/^zd\d/.test(line));
|
|
22
25
|
const fs_filter = [];
|
|
23
26
|
lines.forEach((line) => {
|
|
24
27
|
if (line !== '') {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "systeminformation",
|
|
3
|
-
"version": "6.0.0-beta.
|
|
3
|
+
"version": "6.0.0-beta.22",
|
|
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)",
|