添加95计费出入去大带宽

This commit is contained in:
CN-JS-HuiBai
2026-04-09 12:21:41 +08:00
parent 2eae34bb96
commit 6aa8ba5fbc
5 changed files with 1030 additions and 1028 deletions

View File

@@ -93,6 +93,8 @@ class AreaChart {
combined = data.tx.map(t => t || 0);
} else if (this.p95Type === 'rx') {
combined = data.rx.map(r => r || 0);
} else if (this.p95Type === 'max') {
combined = data.tx.map((t, i) => Math.max(t || 0, data.rx[i] || 0));
} else {
combined = data.tx.map((t, i) => (t || 0) + (data.rx[i] || 0));
}