Less ... hacky?

This commit is contained in:
Emil Fresk 2020-12-13 00:09:44 +01:00
parent 35b4ec0d04
commit dd52539e32

View file

@ -81,9 +81,10 @@ where
Some((nr.task, nr.index)) Some((nr.task, nr.index))
} }
Some(dur) => { Some(_) => {
// TODO: Fix this hack... // TODO: Fix this hack...
let new_instant = *now.duration_since_epoch().integer() + *dur.integer(); // Extract the compare time
let new_instant = *instant.duration_since_epoch().integer();
M::set_compare(new_instant); M::set_compare(new_instant);
// Start counting down from the new reload // Start counting down from the new reload