diff options
author | Hristo Venev <hristo@venev.name> | 2019-03-19 22:20:34 +0200 |
---|---|---|
committer | Hristo Venev <hristo@venev.name> | 2019-03-19 22:20:34 +0200 |
commit | c3269142f8d6c016ce8100b86fcae2031b145a9a (patch) | |
tree | 8b90b321ba347dd0d35852b60f6b86d415a83bb2 /src/main.rs | |
parent | ea93592ee7dc072103af91c6eeab6e895118807e (diff) |
Don't print that many decimal digits on timers.
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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 |