~jplatte/ledybar

05b8a2e1890d06503dfa6451f896dcde9abfc587 — Jonas Platte 8 months ago 9cd1a08
Use thread::park_timeout instead of thread::sleep
1 files changed, 1 insertions(+), 1 deletions(-)

M src/module.rs
M src/module.rs => src/module.rs +1 -1
@@ 87,7 87,7 @@ pub fn mod_loop(m: Module, send_update: impl Fn(ModuleUpdate)) -> anyhow::Result
                elapsed = start.elapsed();
                elapsed < inter
            } {
                thread::sleep(inter - elapsed);
                thread::park_timeout(inter - elapsed);
            }

            start += inter;