()
| 509 | } |
| 510 | |
| 511 | func (m modifyModel) getCurrentGPUCountCursorPosition() int { |
| 512 | currentNumGPUs, _ := strconv.Atoi(m.currentInstance.NumGPUs) |
| 513 | gpuCounts := m.specs.GPUCounts(m.config.GPUType) |
| 514 | for i, count := range gpuCounts { |
| 515 | if count == currentNumGPUs { |
| 516 | return i |
| 517 | } |
| 518 | } |
| 519 | return 0 |
| 520 | } |
| 521 | |
| 522 | func (m modifyModel) getCurrentComputeCursorPosition() int { |
| 523 | currentVCPUs, _ := strconv.Atoi(m.currentInstance.CPUCores) |
no test coverage detected