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