Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add space to 'poll interval' #1101

Merged
merged 1 commit into from
Oct 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions docs/guide/getting-started.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,16 @@ Stratum: 3

Sources:
ntpd-rs.pool.ntp.org:123/20.101.57.9:123 (1): -0.022944±0.000218(±0.004720)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.103531s, root delay:0.001434s
ntpd-rs.pool.ntp.org:123/35.204.193.221:123 (2): +0.000564±0.000138(±0.007323)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000000s, root delay:0.007538s
ntpd-rs.pool.ntp.org:123/94.198.159.15:123 (3): +0.000140±0.000202(±0.005725)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000015s, root delay:0.000015s
ntpd-rs.pool.ntp.org:123/95.211.123.72:123 (4): +0.000052±0.000189(±0.005118)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.039536s, root delay:0.021667s

Servers:
Expand Down Expand Up @@ -63,22 +63,22 @@ Stratum: 2

Sources:
ntp.time.nl:123/94.198.159.10:123 (1): +0.000380±0.000249(±0.005496)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000122s, root delay:0.000000s
ntp.time.nl:123/94.198.159.14:123 (2): -0.000046±0.000154(±0.005520)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000122s, root delay:0.000000s
ntpd-rs.pool.ntp.org:123/84.245.9.254:123 (3): -0.000288±0.000698(±0.008572)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000305s, root delay:0.006226s
ntpd-rs.pool.ntp.org:123/83.98.155.30:123 (4): +0.000000±0.000163(±0.005186)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.005020s, root delay:0.004898s
ntpd-rs.pool.ntp.org:123/162.159.200.123:123 (5): -0.000380±0.000140(±0.004535)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.000259s, root delay:0.003662s
ntpd-rs.pool.ntp.org:123/5.255.99.180:123 (6): +0.000193±0.000203(±0.005414)s
pollinterval: 16s, missing polls: 0
poll interval: 16s, missing polls: 0
root dispersion: 0.008499s, root delay:0.005661s

Servers:
Expand Down
6 changes: 5 additions & 1 deletion ntpd/src/ctl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,11 @@ async fn print_state(print: Format, observe_socket: PathBuf) -> Result<ExitCode,
},
) => {
println!(
"{}/{} ({}): {:+.6}±{:.6}(±{:.6})s\n pollinterval: {:.0}s, missing polls: {}\n root dispersion: {:.6}s, root delay:{:.6}s",
concat!(
"{}/{} ({}): {:+.6}±{:.6}(±{:.6})s\n",
" poll interval: {:.0}s, missing polls: {}\n",
" root dispersion: {:.6}s, root delay:{:.6}s"
),
address,
ip,
id,
Expand Down