We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 290741f commit c821a61Copy full SHA for c821a61
engine/planner.go
@@ -75,8 +75,8 @@ func (p *planner) Plan(ctx context.Context) error {
75
76
ctx = logger.WithContext(ctx, log)
77
78
- free := max(capacity-running-p.buffer, 0)
79
- diff := serverDiff(pending, free, p.cap)
+ free := max(capacity-running, 0)
+ diff := serverDiff(pending+p.buffer, free, p.cap)
80
81
// if the server differential to handle the build volume
82
// is positive, we can reduce server capacity.
0 commit comments