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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user