major refactor

* uccm add parsers and metrics for gps sats, loop diag
* cleanups and improvements
* fix refclock to survive chrony restart
* cargo updates
* etc
This commit is contained in:
2025-05-03 23:06:19 -07:00
parent a828f3267c
commit d7c57cf23a
8 changed files with 1343 additions and 677 deletions

View File

@@ -1,7 +1,7 @@
use async_trait::async_trait;
use chrono::NaiveDateTime;
use chrono::{DateTime, Utc};
use figment::{
providers::{Data, Format, Serialized, Toml},
providers::{Format, Serialized, Toml},
util::map,
value::Map,
Figment,
@@ -9,7 +9,7 @@ use figment::{
use gethostname::gethostname;
use influxdb2::models::DataPoint;
use serde_derive::{Deserialize, Serialize};
use std::{path::Path, time::Duration};
use std::path::Path;
use tokio::sync::broadcast::*;
#[derive(Serialize, Deserialize, Clone)]
@@ -102,7 +102,7 @@ impl Default for HwmonConfig {
}
#[derive(Clone, Debug)]
pub struct TimeReport {
pub system_time: NaiveDateTime,
pub system_time: DateTime<Utc>,
pub offset: chrono::Duration,
pub leaps: isize,
pub leap_flag: bool,