time: Calculate period to wait on each iteration (#237)
Computing the delay only once won't work; it has to be be done each time to stay properly in sync. The time widget should now reliably update at the minute. Co-authored-by: Michael Murphy <michael@mmurphy.dev>
This commit is contained in:
parent
43de23e94a
commit
fee7eefe5b
3 changed files with 22 additions and 22 deletions
1
Cargo.lock
generated
1
Cargo.lock
generated
|
|
@ -1035,6 +1035,7 @@ dependencies = [
|
|||
"nix 0.26.4",
|
||||
"once_cell",
|
||||
"rust-embed 6.8.1",
|
||||
"tokio",
|
||||
"tracing",
|
||||
]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue