Azure / Azure/chrony-tracker

Need clarification about `system_time_offset` vs `last_offset`

Open
#5 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
2
Forks
5
PR merge metrics
No merged PRs in 30d

Description

The clock_error here is calculated via

```text
clock_error = |last_offset| + root_dispersion + (0.5 * root_delay).
```

Following the [chrony documentation](https://chrony-project.org/doc/3.3/chronyc.html#:~:text=chronyc%20is%20a%20command%2Dline%20interface,parameters%20whilst%20it%20is%20running.) "Last offset" is defined as "This is the estimated local offset on the last clock update.".

On the same page under "Root dispersion" we have the formula

```text
clock_error <= |system_time_offset| + root_dispersion + (0.5 * root_delay)
```

where `system_time_offset` is probably the value from `system time` you see when running `chronyc tracking`.

Which formula is correct?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.