dockerContainerStats() fix changed to as documented

This commit is contained in:
Sebastian Hildebrandt 2021-01-02 21:15:59 +01:00
parent 13b331850b
commit 825ab9f5f9
4 changed files with 11 additions and 5 deletions

View File

@ -30,6 +30,7 @@ For major (breaking) changes - version 3 and 2 see end of page.
| 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.4 | 2020-12-28 | `typescript` typings fix |
| 4.33.3 | 2020-12-27 | `graphics()` updated docs |

View File

@ -83,6 +83,11 @@
</tr>
</thead>
<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>
<th scope="row">4.33.5</th>
<td>2020-12-30</td>

View File

@ -169,7 +169,7 @@
<img class="logo" src="assets/logo.png">
<div class="title">systeminformation</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>
</div>
<div class="down">

View File

@ -273,7 +273,7 @@ function docker_calcCPUPercent(cpu_stats, precpu_stats) {
function docker_calcNetworkIO(networks) {
let rx;
let tx;
let wx;
for (let key in networks) {
// skip loop if the property is from prototype
if (!{}.hasOwnProperty.call(networks, key)) continue;
@ -285,11 +285,11 @@ function docker_calcNetworkIO(networks) {
*/
let obj = networks[key];
rx = +obj.rx_bytes;
tx = +obj.tx_bytes;
wx = +obj.tx_bytes;
}
return {
rx: rx,
tx: tx
rx,
wx
};
}