We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1fa327a commit ac9a83fCopy full SHA for ac9a83f
crates/aoc/src/cli/mode/test/manager.rs
@@ -71,15 +71,22 @@ impl Manager {
71
}
72
if !self.pending_updates.is_empty() && now >= next_update {
73
self.update_grid(grid)?;
74
- next_update += UPDATE_INTERVAL;
+ if next_update + UPDATE_INTERVAL < now {
75
+ next_update = now + UPDATE_INTERVAL;
76
+ } else {
77
+ next_update += UPDATE_INTERVAL;
78
+ }
79
80
grid.flush()?;
81
82
self.enqueue_processes()?;
83
self.process_result(
- next_spinner_tick
- .min(next_update)
- .saturating_duration_since(now),
84
+ if self.pending_updates.is_empty() {
85
+ next_spinner_tick
86
87
+ next_update.min(next_spinner_tick)
88
89
+ .saturating_duration_since(now),
90
)?;
91
92
0 commit comments