Merge pull request #45 from whoisix/master

修复任务列表下次执行时间问题,修改错别字
This commit is contained in:
George Hao
2021-05-18 00:06:40 +08:00
committed by GitHub
3 changed files with 20 additions and 9 deletions

View File

@@ -735,7 +735,7 @@ func (self *TaskController) Table() {
TaskServerIdsArr := strings.Split(v.ServerIds, ",")
serverId := 0
if len(TaskServerIdsArr) > 1 {
if len(TaskServerIdsArr) > 0 {
serverId, _ = strconv.Atoi(TaskServerIdsArr[0])
}
jobskey := libs.JobKey(v.Id, serverId)