aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Emil Fresk <emil.fresk@gmail.com> 2021-02-22 20:59:23 +0100
committerGravatar Emil Fresk <emil.fresk@gmail.com> 2021-02-22 20:59:23 +0100
commit56d99c02bd809dfa96d6c1f102e046533c5c631f (patch)
tree89ce79b894f218afef37acab27b77d8b17b7c627 /src
parent82d051e8e967522af735fff47a1738ce4952f950 (diff)
downloadrtic-56d99c02bd809dfa96d6c1f102e046533c5c631f.tar.gz
rtic-56d99c02bd809dfa96d6c1f102e046533c5c631f.tar.zst
rtic-56d99c02bd809dfa96d6c1f102e046533c5c631f.zip
Updated to new interface
Diffstat (limited to 'src')
-rw-r--r--src/tq.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tq.rs b/src/tq.rs
index a637007d..063bbd8e 100644
--- a/src/tq.rs
+++ b/src/tq.rs
@@ -90,9 +90,8 @@ where
Some((nr.task, nr.index))
} else {
- // TODO: Fix this hack...
- // Extract the compare time.
- mono.set_compare(*instant.duration_since_epoch().integer());
+ // Set compare
+ mono.set_compare(&instant);
// Double check that the instant we set is really in the future, else
// dequeue. If the monotonic is fast enough it can happen that from the