From dd52539e32690c5cff73efe40c5d443b770d82a0 Mon Sep 17 00:00:00 2001 From: Emil Fresk Date: Sun, 13 Dec 2020 00:09:44 +0100 Subject: [PATCH] Less ... hacky? --- src/tq.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tq.rs b/src/tq.rs index a98eed6f0a..88593927ac 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