Files
ontime/apps
Claude 93170fbc69 refactor(rundown): simplify gap and overlap accumulation
The gap/overlap detection is already a merge-intervals sweep: `latestEvent`
is the running max end and `getTimeFrom` is `start - maxEnd`. Making that
explicit collapses the branching around it.

- getTimeFrom: the three branches all returned the same subtraction
- totalDuration: the gap === 0 / gap > 0 / gap < 0 cases are all
  Math.max(duration + gap, 0), since duration is never negative

Same behaviour, no signature changes.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016XSraCPafWbAg35gAFrtgH
2026-07-31 05:10:29 +00:00
..
2026-07-18 15:24:25 +02:00
2026-07-18 15:24:25 +02:00
2026-03-08 16:22:12 +01:00