aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/tq.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/tq.rs b/src/tq.rs
index a98eed6..8859392 100644
--- a/src/tq.rs
+++ b/src/tq.rs
@@ -81,9 +81,10 @@ where
Some((nr.task, nr.index))
}
- Some(dur) => {
+ Some(_) => {
// 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);
// Start counting down from the new reload