Skip to content

Commit

Permalink
Show the average drift even when not synchronized as this is the sync…
Browse files Browse the repository at this point in the history
…hronization criteria
  • Loading branch information
pascal-fb-martin committed Feb 13, 2024
1 parent 75a5473 commit 493252a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@
if (response.clock.time) {
if (response.clock.time.synchronized) {
document.getElementById('precision').innerHTML = response.clock.time.precision+' ms';
document.getElementById('avgdrift').innerHTML = response.clock.time.avgdrift+' ms';
var cycle = new Date(Math.round(response.clock.time.cycle * 1000));
document.getElementById('cycle').innerHTML = shortTime(cycle);
} else {
document.getElementById('precision').innerHTML = 'Not Synchronized';
}
document.getElementById('drift').innerHTML = response.clock.time.drift+' ms';
document.getElementById('avgdrift').innerHTML = response.clock.time.avgdrift+' ms';
}
if (response.clock.ntp) {
document.getElementById('source').innerHTML = response.clock.ntp.source;
Expand Down

0 comments on commit 493252a

Please sign in to comment.