We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70be153 commit a0ff9e9Copy full SHA for a0ff9e9
internal/proxmox/vms.go
@@ -196,7 +196,7 @@ func (s *ProxmoxService) GetNextVMIDs(num int) ([]int, error) {
196
lowestID := usedVMIDs[len(usedVMIDs)-1] // Set to highest existing VMID by default
197
prevID := usedVMIDs[0] // Start at the lowest existing VMID
198
for _, vmID := range usedVMIDs[1 : len(usedVMIDs)-1] {
199
- if (vmID - prevID) >= num {
+ if (vmID - prevID) > num {
200
log.Printf("Found available VMID range between %d and %d", prevID, vmID)
201
lowestID = prevID
202
break
0 commit comments