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 9e207f3 commit 4f36a18Copy full SHA for 4f36a18
cmd/gpu_fakedev/gpu_fakedev.go
@@ -375,7 +375,7 @@ func saveSideCarFile(connections string) {
375
defer f.Close()
376
377
// Write first line without Z prefix
378
- line := fmt.Sprintf("xpumanager.intel.com/xe-links=%s", connections[:maxK8sLabelSize])
+ line := fmt.Sprintf("xpumanager.intel.com/xe-links=%s", connections[:min(len(connections), maxK8sLabelSize)])
379
fmt.Println(line)
380
381
if _, err := f.WriteString(line + "\n"); err != nil {
0 commit comments