fix(slurm): correct PartitionInfoMaximums CpusPerNode/CpusPerSocket types to Uint32NoVal

Ultraworked with [Sisyphus](https://github.com/code-yeongyu/oh-my-openagent)

Co-authored-by: Sisyphus <clio-agent@sisyphuslabs.ai>
This commit is contained in:
dailz
2026-04-10 11:39:29 +08:00
parent 34ba617cbf
commit 30f0fbc34b
3 changed files with 5 additions and 5 deletions

View File

@@ -307,7 +307,7 @@ func mapPartition(pi slurm.PartitionInfo) model.PartitionResponse {
}
var maxCPUsPerNode *int32
if pi.Maximums != nil {
maxCPUsPerNode = pi.Maximums.CpusPerNode
maxCPUsPerNode = mapUint32NoValToInt32(pi.Maximums.CpusPerNode)
}
var minNodes *int32
if pi.Minimums != nil {