mirror of
https://github.com/XShengTech/MEGREZ.git
synced 2026-09-27 04:37:23 +00:00
[Fix] 🐛 Send Instance Current Config to Controler #23
This commit is contained in:
@@ -45,6 +45,15 @@ func patchGpu(ip string, port int, apikey string,
|
|||||||
Dest: "/root/megrez-tmp",
|
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)
|
reqBytes, err := json.Marshal(data)
|
||||||
|
|||||||
Reference in New Issue
Block a user