feat: Adjust delta status thresholds for 0ms, <10ms, >=10ms

Co-authored-by: aider (gemini/gemini-2.5-pro) <aider@aider.chat>
This commit is contained in:
Chris Frankland-Wright 2025-08-08 00:18:55 +01:00
parent d4ff2568e3
commit 6726cf393a
2 changed files with 5 additions and 5 deletions

View file

@ -112,9 +112,9 @@ document.addEventListener('DOMContentLoaded', () => {
// Delta Status
const deltaMs = data.timecode_delta_ms;
let deltaCategory;
if (Math.abs(deltaMs) <= 40) { // ~1 frame at 25fps
if (deltaMs === 0) {
deltaCategory = 'good';
} else if (Math.abs(deltaMs) <= 100) {
} else if (Math.abs(deltaMs) < 10) {
deltaCategory = 'average';
} else {
deltaCategory = 'bad';