Skip to content

Commit

Permalink
Fix: slurm freememory unmarshaling when getting stats from slurm
Browse files Browse the repository at this point in the history
malvag committed Apr 8, 2024
1 parent c67ad7e commit b5b7bb9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion compute/slurm/stats.go
Original file line number Diff line number Diff line change
@@ -82,7 +82,8 @@ type NodeInfo struct {
EphemeralStorage uint64 `json:"temporary_disk"`

// FreeMemory ... reported in MegaBytes
FreeMemory uint64 `json:"free_memory"`
//[TODO: temporarily changed it to int64 due to sometimes slurm declares freememory as "-2"]
FreeMemory int64 `json:"free_memory"`
Partitions []string `json:"partitions"`
}

0 comments on commit b5b7bb9

Please sign in to comment.