mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
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:
parent
d4ff2568e3
commit
6726cf393a
2 changed files with 5 additions and 5 deletions
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue