mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
Compare commits
No commits in common. "4cdead5aa45691e2730ed0a8424f9d98676e1dd8" and "1842419f102e0e974e83faa567d6c00dd80afbbc" have entirely different histories.
4cdead5aa4
...
1842419f10
3 changed files with 4 additions and 3 deletions
|
|
@ -64,7 +64,6 @@ impl Config {
|
||||||
Self::default()
|
Self::default()
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Default for Config {
|
impl Default for Config {
|
||||||
|
|
|
||||||
|
|
@ -248,7 +248,9 @@ async fn main() {
|
||||||
let state = sync_state.lock().unwrap();
|
let state = sync_state.lock().unwrap();
|
||||||
let config = sync_config.lock().unwrap();
|
let config = sync_config.lock().unwrap();
|
||||||
|
|
||||||
if config.auto_sync_enabled && state.latest.is_some() {
|
if config.is_auto_sync_paused() {
|
||||||
|
log::info!("Auto-sync is temporarily paused.");
|
||||||
|
} else if config.auto_sync_enabled && state.latest.is_some() {
|
||||||
let delta = state.get_ewma_clock_delta();
|
let delta = state.get_ewma_clock_delta();
|
||||||
let frame = state.latest.as_ref().unwrap();
|
let frame = state.latest.as_ref().unwrap();
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use crate::sync_logic::LtcFrame;
|
use crate::sync_logic::LtcFrame;
|
||||||
use chrono::{DateTime, Duration as ChronoDuration, Local, TimeZone};
|
use chrono::{DateTime, Duration as ChronoDuration, Local, NaiveTime, TimeZone};
|
||||||
use num_rational::Ratio;
|
use num_rational::Ratio;
|
||||||
use std::process::Command;
|
use std::process::Command;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue