Skip to content

Commit

Permalink
numRequested
Browse files Browse the repository at this point in the history
Signed-off-by: Craig Perkins <cwperx@amazon.com>
  • Loading branch information
cwperks committed Oct 25, 2024
1 parent d5276cd commit 28b95b8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ public SortedSet<Integer> allocate(String clientName, int numRequested, int minP

int startPort = minPort;

while (!isPortRangeAvailable(startPort, startPort + 6)) {
while (!isPortRangeAvailable(startPort, startPort + numRequested)) {
startPort += 10;
}

Expand Down

0 comments on commit 28b95b8

Please sign in to comment.