This commit is contained in:
shy 2021-04-05 18:49:41 +02:00
parent b27667d5e2
commit 074a22f2d9

View file

@ -82,6 +82,7 @@ fn main() {
std::process::exit(1); std::process::exit(1);
}); });
// Enter main loop.
loop { loop {
// Process received signals. // Process received signals.
match signal.swap(0, Ordering::Relaxed) { match signal.swap(0, Ordering::Relaxed) {
@ -176,6 +177,7 @@ fn main() {
buffer_updated = true; buffer_updated = true;
} }
}, },
// Any other key.
_ => (), _ => (),
} }
} }
@ -190,7 +192,7 @@ fn main() {
let elapsed = if clock.paused { let elapsed = if clock.paused {
clock.elapsed clock.elapsed
} else { } else {
// Should never owerflow as we reestablish a new "start" // Should never overflow as we reestablish a new "start"
// instant every 24 hours. // instant every 24 hours.
clock.start.elapsed().as_secs() as u32 clock.start.elapsed().as_secs() as u32
}; };