diff --git a/src/main.rs b/src/main.rs index 9d54b1b..8379ef7 100644 --- a/src/main.rs +++ b/src/main.rs @@ -8,11 +8,12 @@ enum SaveMessage { } async fn produce_soft_saves(tx: async_channel::Sender) { - let secs = 60; + let secs = 30; let duration = Duration::from_secs(secs); let mut interval = tokio::time::interval(duration); + interval.tick().await; loop { interval.tick().await; @@ -21,11 +22,12 @@ async fn produce_soft_saves(tx: async_channel::Sender) { } async fn produce_hard_saves(tx: async_channel::Sender) { - let secs = 240; + let secs = 200; let duration = Duration::from_secs(secs); let mut interval = tokio::time::interval(duration); + interval.tick().await; loop { interval.tick().await; @@ -90,7 +92,7 @@ async fn do_hard_save_with_announcement() { run_rcon_command([ "say", - "The hard save has been completed. We do this to lower crash risks. Thanks.", + "The hard save has completed. We do this to lower crash risks. Thanks.", ]) .await; }