diff options
| author | Emil Fresk <emil.fresk@gmail.com> | 2020-12-13 00:09:44 +0100 |
|---|---|---|
| committer | Emil Fresk <emil.fresk@gmail.com> | 2020-12-13 00:09:44 +0100 |
| commit | dd52539e32690c5cff73efe40c5d443b770d82a0 (patch) | |
| tree | 2edd95d41c76e45f4235d12cc69fd9a210329949 /src/tq.rs | |
| parent | 35b4ec0d0435879cca97536b5c866fc2ac2e9210 (diff) | |
Less ... hacky?
Diffstat (limited to 'src/tq.rs')
| -rw-r--r-- | src/tq.rs | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
