mirror of
https://github.com/newnius/YAO-scheduler.git
synced 2025-12-13 07:46:43 +00:00
update
This commit is contained in:
@@ -214,7 +214,7 @@ func (optimizer *Optimizer) predict(job string, seq int) (OptimizerJobExecutionT
|
||||
|
||||
var res MsgOptimizerPredict
|
||||
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{}, false
|
||||
|
||||
Reference in New Issue
Block a user