未验证 提交 eea54570 编写于 作者: G GitSquared

Upgrade systeminformation to v4.0.4

上级 2fc1131b
......@@ -80,10 +80,10 @@ class Conninfo {
this.series[0].maxValue = max1;
}
this.series[0].append(time, data.tx_sec/125000);
this.series[1].append(time, -data.rx_sec/125000);
this.series[0].append(time, data[0].tx_sec/125000);
this.series[1].append(time, -data[0].rx_sec/125000);
this.total.innerText = `${this._pb(data.tx)} OUT, ${this._pb(data.rx)} IN`.toUpperCase();
this.total.innerText = `${this._pb(data[0].tx_bytes)} OUT, ${this._pb(data[0].rx_bytes)} IN`.toUpperCase();
});
}
}
......
......@@ -60,7 +60,7 @@ class Netstat {
} else {
// Find the first external, IPv4 connected networkInterface that has a MAC address set
while (net.internal === true || net.ip4 === "" || net.mac === "") {
while (net.operstate !== "up" || net.internal === true || net.ip4 === "" || net.mac === "") {
netID++;
if (data[netID]) {
net = data[netID];
......
......@@ -461,9 +461,9 @@
}
},
"systeminformation": {
"version": "3.54.0",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-3.54.0.tgz",
"integrity": "sha512-kWzMlMS4B2bz+b9qhmdrbdZZuVpf3LJr4lbIZbOVbfXlJLlPJLmoUlCy+2VmTd/ow1xZGUkaQNBSz0X19NViWA=="
"version": "4.0.4",
"resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-4.0.4.tgz",
"integrity": "sha512-te+0zYUhWT5es+BevDAdYWGrC35AfNE3VhNOr+lzIgR3CZ9csHThHkT0VAiQqE/UayEcSp6BYHzB9wLGszpk3A=="
},
"tail": {
"version": "2.0.2",
......
......@@ -32,7 +32,7 @@
"shell-env": "2.2.0",
"signale": "1.3.0",
"smoothie": "1.35.0",
"systeminformation": "3.54.0",
"systeminformation": "4.0.4",
"tail": "2.0.2",
"ws": "6.1.3",
"xterm": "3.11.0"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册