修复泄露IP的严重BUG
This commit is contained in:
@@ -489,7 +489,9 @@
|
||||
{ key: 'swapUsedPct', label: 'SWAP 使用率', value: formatPercent(data.swapUsedPct) },
|
||||
{ key: 'rootFsUsedPct', label: '根分区使用率 (/)', value: formatPercent(data.rootFsUsedPct) },
|
||||
{ key: 'netRx', label: '网络接收速率 (RX)', value: formatBandwidth(data.netRx) },
|
||||
{ key: 'netTx', label: '网络发送速率 (TX)', value: formatBandwidth(data.netTx) }
|
||||
{ key: 'netTx', label: '网络发送速率 (TX)', value: formatBandwidth(data.netTx) },
|
||||
{ key: 'sockstatTcp', label: 'TCP 链接数 (Sockstat)', value: data.sockstatTcp.toFixed(0) },
|
||||
{ key: 'sockstatTcpMem', label: 'TCP 内存占用', value: formatBytes(data.sockstatTcpMem) }
|
||||
];
|
||||
|
||||
dom.detailMetricsList.innerHTML = metrics.map(m => `
|
||||
@@ -565,7 +567,8 @@
|
||||
let unit = '';
|
||||
if (metricKey.includes('Pct') || metricKey === 'cpuBusy') unit = '%';
|
||||
if (metricKey.startsWith('net')) unit = 'B/s';
|
||||
|
||||
if (metricKey === 'sockstatTcpMem') unit = 'B';
|
||||
|
||||
chart = new MetricChart(canvas, unit);
|
||||
currentServerDetail.charts[metricKey] = chart;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user