MCPcopy Create free account
hub / github.com/aws/clock-bound / update_selected_clock

Method update_selected_clock

clock-bound/src/daemon/clock_sync_algorithm.rs:182–193  ·  view source on GitHub ↗
(selected_clock: &Arc<SelectedClockSource>, source_info: SourceInfo)

Source from the content-addressed store, hash-verified

180 tenure: self.selector.tenure_of(&source_info),
181 source_info,
182 poll_interval: amazon_time_sync.poll_interval(),
183 skm: amazon_time_sync.skm_summary(window, period),
184 requests: 0,
185 responses: 0,
186 status: SourceStatus::Unknown,
187 });
188 }
189
190 for ntp in &self.ntp_sources {
191 let source_info = ntp.source_info();
192 sources.push(logging::sources::SourceData {
193 tenure: self.selector.tenure_of(&source_info),
194 source_info,
195 poll_interval: ntp.poll_interval(),
196 skm: ntp.skm_summary(window, period),

Callers

nothing calls this directly

Calls 2

set_to_serverMethod · 0.80
set_to_phcMethod · 0.80

Tested by

no test coverage detected