(s, small)
| 262 | return `<span class="pill ${m.online ? 'on' : 'off'}">${proto}</span>`; |
| 263 | } |
| 264 | function trafficCaps(s, small){ |
| 265 | const m = metrics(s); |
| 266 | const heavy = m.traffic >= 1000 * 1000 * 1000 * 1000; |
| 267 | return `<span class="caps-traffic duo ${heavy ? 'heavy' : 'normal'}${small ? ' sm' : ''}" title="本月下行 | 上行"><span class="half in">${humanMinMBFromB(m.monthIn)}</span><span class="half out">${humanMinMBFromB(m.monthOut)}</span></span>`; |
| 268 | } |
| 269 | function gaugeHTML(type, value){ |
| 270 | const pct = clamp(num(value), 0, 100); |
| 271 | const thresholds = { |
no test coverage detected