Skip to content

Commit bfce338

Browse files
authored
Update scheduler.py
1 parent 526729e commit bfce338

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/cuckoo/core/scheduler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def do_main_loop_work(self, error_queue: queue.Queue) -> SchedulerCycleDelay:
9494
vm_state = self.cfg.timeouts.get("vm_state", 100)
9595
timeout = analysis.task.timeout or self.cfg.timeouts.default
9696
max_runtime = timeout + self.cfg.timeouts.critical + stuck_seconds + vm_state
97-
duration = (_utcnow_naive - analysis.task.started_on).total_seconds()
97+
duration = (_utcnow_naive() - analysis.task.started_on).total_seconds()
9898
if duration > max_runtime:
9999
log.warning(
100100
"Task #%s has been running for %s seconds, which is longer than the configured timeout + critical timeout + 100s. Killing VM.",

0 commit comments

Comments
 (0)