(ms)
| 211 | } |
| 212 | |
| 213 | function formatTime(ms) { |
| 214 | if (!ms) return ''; |
| 215 | const dt = new Date(ms); |
| 216 | return dt.toLocaleString('zh-CN', { hour12: false }); |
| 217 | } |
| 218 | |
| 219 | function calcPercent(processed, total) { |
| 220 | return total ? Math.floor((processed / total) * 100) : 0; |
no outgoing calls
no test coverage detected