Skip to content

Commit

Permalink
Merge pull request #278 from JokerQyou/fix/network-io-chart-not-rende…
Browse files Browse the repository at this point in the history
…ring

Fix network I/O chart not rendering.
  • Loading branch information
tobychui authored Aug 7, 2024
2 parents ddbecf7 + 6dd62f5 commit 87659b4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/web/components/status.html
Original file line number Diff line number Diff line change
Expand Up @@ -583,14 +583,14 @@ <h4>Statistic Overview</h4>
url: '/api/stats/netstatgraph?array=true',
success: function(data){
if (rxValues.length == 0){
rxValues = JSON.parse(JSON.stringify(data.Rx));
rxValues.push(...data.Rx);
}else{
rxValues.push(data.Rx[dataCount-1]);
rxValues.shift();
}

if (txValues.length == 0){
txValues = JSON.parse(JSON.stringify(data.Tx));
txValues.push(...data.Tx);
}else{
txValues.push(data.Tx[dataCount-1]);
txValues.shift();
Expand Down

0 comments on commit 87659b4

Please sign in to comment.