mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 08:16:43 +00:00
bugfix
This commit is contained in:
@@ -111,7 +111,7 @@ type GPUStatus struct {
|
||||
type NodeStatus struct {
|
||||
ClientID string `json:"id"`
|
||||
ClientHost string `json:"host"`
|
||||
Version float64 `json:"version"`
|
||||
Version float64 `json:"version"`
|
||||
NumCPU int `json:"cpu_num"`
|
||||
UtilCPU float64 `json:"cpu_load"`
|
||||
MemTotal int `json:"mem_total"`
|
||||
@@ -164,6 +164,13 @@ type MsgGroupList struct {
|
||||
Groups []Group `json:"groups"`
|
||||
}
|
||||
|
||||
type OptimizerJobExecutionTime struct {
|
||||
Pre int `json:"pre"`
|
||||
Post int `json:"post"`
|
||||
Total int `json:"total"`
|
||||
Version int `json:"version"`
|
||||
}
|
||||
|
||||
func str2int(str string, defaultValue int) int {
|
||||
i, err := strconv.Atoi(str)
|
||||
if err == nil {
|
||||
|
||||
Reference in New Issue
Block a user