From 81a61c28619ef9f32e79e5698bc4162ca1ceb82d Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Tue, 16 Jan 2024 22:18:32 +0100 Subject: Add Destination to Send page --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index fd4cc03..6b79581 100644 --- a/src/main.rs +++ b/src/main.rs @@ -14,6 +14,7 @@ struct AppState { conf : config::Config, db : db::Database, transmit_queue : mpsc::Sender>, + start_time : chrono::DateTime, } type SharedState = Arc>; @@ -59,7 +60,8 @@ async fn main() -> std::io::Result<()> { let shared_state = Arc::new(Mutex::new(AppState { conf : conf.clone(), db : db::Database::new().await, - transmit_queue: packet_send.clone(), + transmit_queue : packet_send.clone(), + start_time : chrono::Utc::now(), })); if conf.freq == 0 { -- cgit v1.2.3