()
| 520 | } |
| 521 | |
| 522 | func (m modifyModel) getCurrentComputeCursorPosition() int { |
| 523 | currentVCPUs, _ := strconv.Atoi(m.currentInstance.CPUCores) |
| 524 | vcpuOptions := m.specs.VCPUOptions(m.config.GPUType, m.config.NumGPUs) |
| 525 | for i, vcpus := range vcpuOptions { |
| 526 | if vcpus == currentVCPUs { |
| 527 | return i |
| 528 | } |
| 529 | } |
| 530 | return 0 |
| 531 | } |
| 532 | |
| 533 | func (m modifyModel) getMaxCursor() int { |
| 534 | switch m.step { |
no test coverage detected