()
| 490 | } |
| 491 | |
| 492 | func (m modifyModel) getCurrentGPUCursorPosition() int { |
| 493 | currentGPU := strings.ToLower(m.currentInstance.GPUType) |
| 494 | gpuOptions := m.specs.GPUOptions() |
| 495 | for i, gpu := range gpuOptions { |
| 496 | if gpu == currentGPU { |
| 497 | return i |
| 498 | } |
| 499 | } |
| 500 | return 0 |
| 501 | } |
| 502 | |
| 503 | func (m modifyModel) formatGPUType(gpuType string) string { |
| 504 | return utils.FormatGPUType(gpuType) |
no test coverage detected