MCPcopy Create free account
hub / github.com/cppla/ServerStatus / packetLossLine

Function packetLossLine

web/js/app.js:306–308  ·  view source on GitHub ↗
(s)

Source from the content-addressed store, hash-verified

304 <div class="resource-mini"><span>IO</span><strong>读 ${humanMinMBFromB(s.io_read)} / 写 ${humanMinMBFromB(s.io_write)}</strong></div>`;
305}
306function packetLossLine(s){
307 return [s.ping_10010, s.ping_189, s.ping_10086].map(p => `${clamp(num(p), 0, 100).toFixed(0)}%`).join('|');
308}
309function 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}

Callers 1

refreshDetailFunction · 0.85

Calls 2

clampFunction · 0.85
numFunction · 0.85

Tested by

no test coverage detected