diff --git a/scheds/rust/scx_lavd/src/bpf/main.bpf.c b/scheds/rust/scx_lavd/src/bpf/main.bpf.c index 2197209..dad76ce 100644 --- a/scheds/rust/scx_lavd/src/bpf/main.bpf.c +++ b/scheds/rust/scx_lavd/src/bpf/main.bpf.c @@ -461,7 +461,7 @@ static u64 rsigmoid_u64(u64 v, u64 max) * | \ * +----+--------> */ - return (v > max) ? 0 : max - v; + return (v >= max) ? 0 : max - v; } static struct task_ctx *try_get_task_ctx(struct task_struct *p)