(s)
| 257 | } |
| 258 | |
| 259 | function protoPill(s){ |
| 260 | const m = metrics(s); |
| 261 | const proto = m.online ? (s.online4 && s.online6 ? '双栈' : (s.online4 ? 'IPv4' : 'IPv6')) : '离线'; |
| 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; |
no test coverage detected