Skip to content

Commit 497173f

Browse files
committed
Release 0.2.2
1 parent 207b15d commit 497173f

File tree

8 files changed

+31
-12
lines changed

8 files changed

+31
-12
lines changed

CHANGELOG.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,18 @@
11
# Changelog
22

3+
## [0.2.2] - 2024-20-09
4+
5+
### Added
6+
- Added support for the path trace option
7+
- Added support for disabling synchronization of the system clock, touching only the ptp hardware clocks.
8+
9+
### Changed
10+
- Updated dependencies
11+
- Be less chatty about unexpected PTPv1 messages
12+
13+
### Fixed
14+
- Correctly ignore rogue masters in the PTP network
15+
316
## [0.2.1] - 2024-06-07
417

518
### Added
@@ -32,6 +45,7 @@
3245
### Fixed
3346
- Fixed race condition during startup
3447

48+
[0.2.2]: https://github.com/pendulum-project/statime/compare/v0.2.2...v0.2.1
3549
[0.2.1]: https://github.com/pendulum-project/statime/compare/v0.2.0...v0.2.1
3650
[0.2.0]: https://github.com/pendulum-project/statime/compare/v0.1.0...v0.2.0
3751
[0.1.0]: https://github.com/pendulum-project/statime/releases/tag/v0.1.0

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exclude = [
99
resolver = "2"
1010

1111
[workspace.package]
12-
version = "0.2.1"
12+
version = "0.2.2"
1313
edition = "2021"
1414
license = "Apache-2.0 OR MIT"
1515
repository = "https://github.com/pendulum-project/statime"
@@ -53,7 +53,7 @@ timestamped-socket = "0.2.4"
5353

5454
# our own crates used as dependencies, same version as the workspace version
5555
# NOTE: keep this part at the bottom of the file, do not change this line
56-
statime = { version = "0.2.1", path = "./statime" }
56+
statime = { version = "0.2.2", path = "./statime" }
5757

5858
[profile.release]
5959
debug = 2

docs/man/statime.8.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- ---
2-
title: STATIME(8) statime 0.2.1 | statime
2+
title: STATIME(8) statime 0.2.2 | statime
33
--- -->
44

55
# NAME

docs/man/statime.toml.5.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<!-- ---
2-
title: STATIME.TOML(5) statime 0.2.1 | statime
2+
title: STATIME.TOML(5) statime 0.2.2 | statime
33
--- -->
44

55
# NAME

docs/precompiled/man/statime.8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.4
22
.\"
3-
.TH "STATIME" "8" "" "statime 0.2.1" "statime"
3+
.TH "STATIME" "8" "" "statime 0.2.2" "statime"
44
.SH NAME
55
\f[CR]statime\f[R] \- The Statime PTP daemon for linux
66
.SH SYNOPSIS

docs/precompiled/man/statime.toml.5

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.\" Automatically generated by Pandoc 3.4
22
.\"
3-
.TH "STATIME.TOML" "5" "" "statime 0.2.1" "statime"
3+
.TH "STATIME.TOML" "5" "" "statime 0.2.2" "statime"
44
.SH NAME
55
\f[CR]statime.toml\f[R] \- configuration file for the statime
66
ptp\-daemon
@@ -36,12 +36,17 @@ Together with the \f[CR]domain\f[R] it identifies a domain.
3636
\f[CR]priority1\f[R] = \f[I]priority\f[R] (\f[B]128\f[R])
3737
A tie breaker for the best master clock algorithm in the range
3838
\f[CR]0..256\f[R].
39-
\f[CR]0\f[R] being highest priority an \f[CR]255\f[R] the lowest.
39+
\f[CR]0\f[R] being the highest priority and \f[CR]255\f[R] the lowest.
4040
.TP
4141
\f[CR]priority2\f[R] = \f[I]priority\f[R] (\f[B]128\f[R])
4242
A tie breaker for the best master clock algorithm in the range
4343
\f[CR]0..256\f[R].
44-
\f[CR]0\f[R] being highest priority an \f[CR]255\f[R] the lowest.
44+
\f[CR]0\f[R] being the highest priority and \f[CR]255\f[R] the lowest.
45+
.TP
46+
\f[CR]path\-trace\f[R] = \f[I]bool\f[R]
47+
The instance uses the path trace option.
48+
This allows detecting clock loops when enabled on all instances in the
49+
network.
4550
.TP
4651
\f[CR]virtual\-system\-clock\f[R] = \f[I]bool\f[R] (\f[B]false\f[R])
4752
Use a virtual overlay clock instead of adjusting the system clock.

statime-linux/src/clock/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl LinuxClock {
3636
use clock_steering::Clock;
3737

3838
let ts = self.clock.now()?;
39-
if ts.seconds < 0 || ts.seconds > (u64::MAX / 1000000000) as i64 {
39+
if ts.seconds < 0 || ts.seconds as i64 > (u64::MAX / 1000000000) as i64 {
4040
self.clock.step_clock(TimeOffset {
4141
seconds: -ts.seconds + 1,
4242
nanos: 0,
@@ -181,7 +181,7 @@ impl PortTimestampToTime for LinuxClock {
181181
fn port_timestamp_to_time(&self, mut ts: timestamped_socket::socket::Timestamp) -> Time {
182182
// get_tai gives zero if this is a hardware clock, and the needed
183183
// correction when this port uses software timestamping
184-
ts.seconds += self.get_tai_offset().expect("Unable to get tai offset") as libc::time_t;
184+
ts.seconds += self.get_tai_offset().expect("Unable to get tai offset") as _;
185185
Time::from_fixed_nanos(ts.seconds as i128 * 1_000_000_000i128 + ts.nanos as i128)
186186
}
187187
}

0 commit comments

Comments
 (0)