mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
feat: display clock delta history in UI
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
7738d14097
commit
b803de93de
3 changed files with 9 additions and 0 deletions
|
|
@ -10,6 +10,7 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
deltaMs: document.getElementById('delta-ms'),
|
||||
deltaFrames: document.getElementById('delta-frames'),
|
||||
jitterStatus: document.getElementById('jitter-status'),
|
||||
deltaHistory: document.getElementById('delta-history'),
|
||||
interfaces: document.getElementById('interfaces'),
|
||||
};
|
||||
|
||||
|
|
@ -43,6 +44,8 @@ document.addEventListener('DOMContentLoaded', () => {
|
|||
statusElements.jitterStatus.textContent = data.jitter_status;
|
||||
statusElements.jitterStatus.className = data.jitter_status.toLowerCase();
|
||||
|
||||
statusElements.deltaHistory.textContent = data.clock_delta_history.join(', ');
|
||||
|
||||
statusElements.interfaces.innerHTML = '';
|
||||
if (data.interfaces.length > 0) {
|
||||
data.interfaces.forEach(ip => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue