(durationMs)
| 52 | } |
| 53 | |
| 54 | function formatDuration(durationMs) { |
| 55 | const totalHours = Math.round(durationMs / ONE_HOUR); |
| 56 | if (totalHours < 1) return "less than 1 hour"; |
| 57 | if (totalHours === 1) return "1 hour"; |
| 58 | return `${totalHours} hours`; |
| 59 | } |
| 60 | |
| 61 | function formatDurationRange(minDurationMs, maxDurationMs) { |
| 62 | if (!minDurationMs || !maxDurationMs || minDurationMs === maxDurationMs) { |
no outgoing calls
no test coverage detected