mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-15 16:16:44 +00:00
update
This commit is contained in:
@@ -214,7 +214,7 @@ func (optimizer *Optimizer) predict(job string, seq int) (OptimizerJobExecutionT
|
|||||||
|
|
||||||
var res MsgOptimizerPredict
|
var res MsgOptimizerPredict
|
||||||
err = json.Unmarshal([]byte(string(body)), &res)
|
err = json.Unmarshal([]byte(string(body)), &res)
|
||||||
if err != nil {
|
if err == nil {
|
||||||
return OptimizerJobExecutionTime{Total: res.Total, Pre: res.Pre, Main: res.Main, Post: res.Post}, true
|
return OptimizerJobExecutionTime{Total: res.Total, Pre: res.Pre, Main: res.Main, Post: res.Post}, true
|
||||||
}
|
}
|
||||||
return OptimizerJobExecutionTime{}, false
|
return OptimizerJobExecutionTime{}, false
|
||||||
|
|||||||
Reference in New Issue
Block a user