(seconds)
| 1446 | }, |
| 1447 | |
| 1448 | formatDuration(seconds) { |
| 1449 | const total = Math.max(0, Math.floor(Number(seconds || 0))); |
| 1450 | if (total < 60) return `${total}s`; |
| 1451 | if (total < 3600) return `${Math.floor(total / 60)}m ${total % 60}s`; |
| 1452 | return `${Math.floor(total / 3600)}h ${Math.floor((total % 3600) / 60)}m`; |
| 1453 | }, |
| 1454 | |
| 1455 | formatProgress(progress) { |
| 1456 | const value = Number(progress || 0); |
nothing calls this directly
no outgoing calls
no test coverage detected