diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-05 03:58:52 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-05 03:59:52 +0900 |
| commit | 80ad2e4e2384adc84dc70ee15138c0ea4f9b6784 (patch) | |
| tree | dd8096a8de40bc24816e6518c8100d7d8775044f /internal/app/finalise.go | |
| parent | 92b83bd599adf085c1a2a9c73eeb6b6dc1eee6e4 (diff) | |
internal/app: do not offset base value
This value is applied to the shim, it is incorrect to offset the base value as well.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/app/finalise.go')
| -rw-r--r-- | internal/app/finalise.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/internal/app/finalise.go b/internal/app/finalise.go index f5ae398c..ec2d0a9a 100644 --- a/internal/app/finalise.go +++ b/internal/app/finalise.go @@ -186,13 +186,12 @@ func (k *outcome) finalise(ctx context.Context, msg container.Msg, id *state.ID, } // enforce bounds and default early - kp.waitDelay = shimWaitTimeout if s.Container.WaitDelay <= 0 { - kp.waitDelay += DefaultShimWaitDelay - } else if s.Container.WaitDelay > MaxShimWaitDelay { - kp.waitDelay += MaxShimWaitDelay + kp.waitDelay = hst.DefaultWaitDelay + } else if s.Container.WaitDelay > hst.MaxWaitDelay { + kp.waitDelay = hst.MaxWaitDelay } else { - kp.waitDelay += s.Container.WaitDelay + kp.waitDelay = s.Container.WaitDelay } if s.Container.MapRealUID { |
