From 3a849af69279230651b3bfc8a6c98a27a001eec0 Mon Sep 17 00:00:00 2001 From: BoYanZh Date: Thu, 26 Jun 2025 15:01:15 -0400 Subject: [PATCH] fix: tmp fix for clock time < cpu time (#156) (#158) --- worker/waiter.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/worker/waiter.go b/worker/waiter.go index 1ac3ef9..0205abf 100644 --- a/worker/waiter.go +++ b/worker/waiter.go @@ -19,8 +19,8 @@ type waiter struct { func (w *waiter) Wait(ctx context.Context, u envexec.Process) bool { clockTimeLimit := w.clockTimeLimit timeLimit := w.timeLimit - if clockTimeLimit < w.timeLimit { - clockTimeLimit = w.timeLimit + if clockTimeLimit == 0 { + clockTimeLimit = timeLimit } start := time.Now()