aboutsummaryrefslogtreecommitdiff
path: root/src/tq.rs
diff options
context:
space:
mode:
authorEmil Fresk <emil.fresk@gmail.com>2020-12-13 00:09:44 +0100
committerEmil Fresk <emil.fresk@gmail.com>2020-12-13 00:09:44 +0100
commitdd52539e32690c5cff73efe40c5d443b770d82a0 (patch)
tree2edd95d41c76e45f4235d12cc69fd9a210329949 /src/tq.rs
parent35b4ec0d0435879cca97536b5c866fc2ac2e9210 (diff)
Less ... hacky?
Diffstat (limited to 'src/tq.rs')
-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