dockerContainerStats() fix changed to as documented
This commit is contained in:
parent
13b331850b
commit
825ab9f5f9
@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
|
|||||||
|
|
||||||
| Version | Date | Comment |
|
| Version | Date | Comment |
|
||||||
| -------------- | -------------- | -------- |
|
| -------------- | -------------- | -------- |
|
||||||
|
| 4.33.6 | 2021-01-02 | `dockerContainerStats()` fix `tx` changed to `wx` as documented |
|
||||||
| 4.33.5 | 2020-12-30 | `graphics()` vram (nvidia-smi) |
|
| 4.33.5 | 2020-12-30 | `graphics()` vram (nvidia-smi) |
|
||||||
| 4.33.4 | 2020-12-28 | `typescript` typings fix |
|
| 4.33.4 | 2020-12-28 | `typescript` typings fix |
|
||||||
| 4.33.3 | 2020-12-27 | `graphics()` updated docs |
|
| 4.33.3 | 2020-12-27 | `graphics()` updated docs |
|
||||||
|
|||||||
@ -83,6 +83,11 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody>
|
<tbody>
|
||||||
|
<tr>
|
||||||
|
<th scope="row">4.33.6</th>
|
||||||
|
<td>2021-01-02</td>
|
||||||
|
<td><span class="code">dockerContainerStats()</span> fix 'tx' changed to 'wx' as documented</td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th scope="row">4.33.5</th>
|
<th scope="row">4.33.5</th>
|
||||||
<td>2020-12-30</td>
|
<td>2020-12-30</td>
|
||||||
|
|||||||
@ -169,7 +169,7 @@
|
|||||||
<img class="logo" src="assets/logo.png">
|
<img class="logo" src="assets/logo.png">
|
||||||
<div class="title">systeminformation</div>
|
<div class="title">systeminformation</div>
|
||||||
<div class="subtitle"><span id="typed"></span></div>
|
<div class="subtitle"><span id="typed"></span></div>
|
||||||
<div class="version">Current Version: <span id="version">4.33.5</span></div>
|
<div class="version">Current Version: <span id="version">4.33.6</span></div>
|
||||||
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
<button class="btn btn-light" onclick="location.href='https://github.com/sebhildebrandt/systeminformation'">View on Github <i class=" fab fa-github"></i></button>
|
||||||
</div>
|
</div>
|
||||||
<div class="down">
|
<div class="down">
|
||||||
|
|||||||
@ -273,7 +273,7 @@ function docker_calcCPUPercent(cpu_stats, precpu_stats) {
|
|||||||
|
|
||||||
function docker_calcNetworkIO(networks) {
|
function docker_calcNetworkIO(networks) {
|
||||||
let rx;
|
let rx;
|
||||||
let tx;
|
let wx;
|
||||||
for (let key in networks) {
|
for (let key in networks) {
|
||||||
// skip loop if the property is from prototype
|
// skip loop if the property is from prototype
|
||||||
if (!{}.hasOwnProperty.call(networks, key)) continue;
|
if (!{}.hasOwnProperty.call(networks, key)) continue;
|
||||||
@ -285,11 +285,11 @@ function docker_calcNetworkIO(networks) {
|
|||||||
*/
|
*/
|
||||||
let obj = networks[key];
|
let obj = networks[key];
|
||||||
rx = +obj.rx_bytes;
|
rx = +obj.rx_bytes;
|
||||||
tx = +obj.tx_bytes;
|
wx = +obj.tx_bytes;
|
||||||
}
|
}
|
||||||
return {
|
return {
|
||||||
rx: rx,
|
rx,
|
||||||
tx: tx
|
wx
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user