(ms)
| 3005 | } |
| 3006 | |
| 3007 | function formatDuration(ms) { |
| 3008 | const total = Math.max(0, Math.floor(Number(ms || 0) / 1000)); |
| 3009 | const m = Math.floor(total / 60); |
| 3010 | const s = total % 60; |
| 3011 | return `${m}:${String(s).padStart(2, '0')}`; |
| 3012 | } |
| 3013 | |
| 3014 | function readCryptoEstimateSpeed() { |
| 3015 | try { |