(s)
| 304 | <div class="resource-mini"><span>IO</span><strong>读 ${humanMinMBFromB(s.io_read)} / 写 ${humanMinMBFromB(s.io_write)}</strong></div>`; |
| 305 | } |
| 306 | function packetLossLine(s){ |
| 307 | return [s.ping_10010, s.ping_189, s.ping_10086].map(p => `${clamp(num(p), 0, 100).toFixed(0)}%`).join('|'); |
| 308 | } |
| 309 | function chartLegend(series){ |
| 310 | return `<div class="chart-legend">${series.map(item => `<span><i style="background:${esc(item.color)}"></i>${esc(item.label)}</span>`).join('')}</div>`; |
| 311 | } |
no test coverage detected