From c3269142f8d6c016ce8100b86fcae2031b145a9a Mon Sep 17 00:00:00 2001 From: Hristo Venev Date: Tue, 19 Mar 2019 22:20:34 +0200 Subject: Don't print that many decimal digits on timers. --- src/main.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index 637f01c..9ad0f9b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -132,7 +132,7 @@ impl Device { src.next_update = now + b; t_refresh = t_refresh.min(src.next_update); - eprintln!("<3>Failed to update [{}], retrying after {:?}: {}", &src.config.url, b, &r); + eprintln!("<3>Failed to update [{}], retrying after {:.1?}: {}", &src.config.url, b, &r); src.backoff = Some((b + b / 3).min(refresh)); } @@ -156,7 +156,7 @@ impl Device { } Ok(if t_cfg < t_refresh { - eprintln!("<6>Next configuration update after {:?}", time_to_cfg); + eprintln!("<6>Next configuration update after {:.1?}", time_to_cfg); t_cfg } else if t_refresh > now { t_refresh -- cgit