aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/core/worker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/core/worker.c')
-rw-r--r--src/kernel/core/worker.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/core/worker.c b/src/kernel/core/worker.c
index 6852329..9b50949 100644
--- a/src/kernel/core/worker.c
+++ b/src/kernel/core/worker.c
@@ -50,7 +50,7 @@ void worker_thread(void* x) {
while (true) {
mutex_lock(&tasks_mutex);
- worker_task_t *next_task = btree_upper(tasks, &zero64);
+ worker_task_t *next_task = btree_upper(tasks, &zero64, 0);
next_task_time = (next_task == 0 ? UINT64_MAX : next_task->time);
if (next_task != 0 && next_task->time <= time) {