mirror of
https://github.com/cjfranko/NTP-Timeturner.git
synced 2025-11-08 18:32:02 +00:00
refactor: Extract system and status logic from UI module
Co-authored-by: aider (gemini/gemini-2.5-pro-preview-05-06) <aider@aider.chat>
This commit is contained in:
parent
1d9bc1e25e
commit
b854d29015
2 changed files with 5 additions and 3 deletions
|
|
@ -1,4 +1,5 @@
|
||||||
use chrono::{DateTime, Local, Timelike, Utc};
|
use crate::config::Config;
|
||||||
|
use chrono::{DateTime, Local, Timelike, Utc};
|
||||||
use regex::Captures;
|
use regex::Captures;
|
||||||
use std::collections::VecDeque;
|
use std::collections::VecDeque;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
use std::{
|
use std::{
|
||||||
io::{stdout, Write},
|
io::{stdout, Write},
|
||||||
process::{self, Command},
|
process::{self},
|
||||||
sync::{Arc, Mutex},
|
sync::{Arc, Mutex},
|
||||||
thread,
|
thread,
|
||||||
time::{Duration, Instant},
|
time::{Duration, Instant},
|
||||||
|
|
@ -21,7 +21,8 @@ use crossterm::{
|
||||||
|
|
||||||
use crate::config::Config;
|
use crate::config::Config;
|
||||||
use get_if_addrs::get_if_addrs;
|
use get_if_addrs::get_if_addrs;
|
||||||
use crate::sync_logic::{LtcFrame, LtcState};
|
use crate::sync_logic::{get_jitter_status, get_sync_status, LtcFrame, LtcState};
|
||||||
|
use crate::system;
|
||||||
|
|
||||||
|
|
||||||
pub fn start_ui(
|
pub fn start_ui(
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue