diff --git a/LICENSE b/LICENSE index f4aa621..8ff423a 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2022 Paul-Christian Volkmer +Copyright (c) 2023 Paul-Christian Volkmer Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal diff --git a/src/main.rs b/src/main.rs index 92cd640..2626ae9 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,7 @@ use checkbar::{get_click_cmd, print_states, read_click_event, run_click_cmd, Config, MouseButton}; use serde_json::json; use tokio::task; +use tokio::time::sleep; #[tokio::main(flavor = "multi_thread", worker_threads = 2)] async fn main() { @@ -31,7 +32,7 @@ async fn main() { loop { let config = Config::read(); print_states(&config.checks).await; - std::thread::sleep(config.interval); + let _ = sleep(config.interval).await; } });