[Fix] 🐛 Send Instance Current Config to Controler #23

This commit is contained in:
Harry-zklcdc
2025-05-05 21:26:47 +08:00
parent 011827f5c7
commit 7fc2c3ec09
+9
View File
@@ -45,6 +45,15 @@ func patchGpu(ip string, port int, apikey string,
Dest: "/root/megrez-tmp",
},
}
data.GpuPatch = &gpuPatchStruct{
GpuCount: gpuCount,
}
data.CpuPatch = &cpuPatchStruct{
CpuCount: cpuCountPerGpu * gpuCount,
}
data.MemoryPatch = &MemoryPatchStruct{
Memory: strconv.Itoa(memoryPerGpu*gpuCount) + "GB",
}
}
reqBytes, err := json.Marshal(data)