commit:     7b3a7ddcf3fbe0f0c89223f941a884fe00a85b15
Author:     Florian Schmaus <flow <AT> gentoo <DOT> org>
AuthorDate: Fri Dec 12 20:07:10 2025 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Dec 13 10:46:27 2025 +0000
URL:        https://gitweb.gentoo.org/proj/steve.git/commit/?id=7b3a7ddc

Set min_jobs to 1 to guarantee forward progress

Signed-off-by: Florian Schmaus <flow <AT> gentoo.org>
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 steve.cxx | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/steve.cxx b/steve.cxx
index 27b7987..37b3258 100644
--- a/steve.cxx
+++ b/steve.cxx
@@ -90,7 +90,7 @@ struct steve_process {
 struct steve_state {
        bool verbose;
        uint64_t jobs;
-       uint64_t min_jobs;
+       uint64_t min_jobs{1};
        int64_t per_process_limit;
        double max_load_avg{-1};  /* < 0 implies no load average */
        double load_avg;
@@ -766,6 +766,7 @@ static constexpr char steve_usage[] =
 "                           (fractional down to usec, default: 0.5)\n"
 "    --min-jobs=MIN_JOBS, -m MIN_JOBS\n"
 "                           min. jobs to serve even if load average is 
exceeded\n"
+"                           (default: 1)\n"
 "    --per-process-limit=LIMIT, -p LIMIT\n"
 "                           max. jobs to serve to a single process\n"
 "    --user=USER, -u USER   drop superuser privileges and switch to USER\n"

Reply via email to