diff --git a/src/script/hydra-queue-runner b/src/script/hydra-queue-runner index f67d8cc2..2744c243 100755 --- a/src/script/hydra-queue-runner +++ b/src/script/hydra-queue-runner @@ -106,7 +106,7 @@ sub checkBuilds { { join => ['project'], select => ['system'], as => ['system'], distinct => 1 }); # Get the total number of scheduling shares. - my $totalShares = getTotalShares($db); + my $totalShares = getTotalShares($db) || 1; # For each system type, select up to the maximum number of # concurrent build for that system type.