Compare commits
No commits in common. "8a48a54c3abe99fb442f5f64839a03459d3edbda" and "0c6143086dc716528dfc8e46d511131863d9849d" have entirely different histories.
8a48a54c3a
...
0c6143086d
|
|
@ -83,7 +83,7 @@ func ShellWillRunFromServer() {
|
||||||
//执行时间,转成秒
|
//执行时间,转成秒
|
||||||
shellRuntime := time.Since(start).Seconds()
|
shellRuntime := time.Since(start).Seconds()
|
||||||
if err2 != "" {
|
if err2 != "" {
|
||||||
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 3, ShellResult: "err:" + err2 + "\nresult:" + res, ShellRuntime: shellRuntime}) //执行出错
|
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 3, ShellResult: err2, ShellRuntime: shellRuntime}) //执行出错
|
||||||
} else {
|
} else {
|
||||||
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 2, ShellResult: res, ShellRuntime: shellRuntime}) //执行成功
|
resp = append(resp, proto.UpdateShellReq{ID: v.ID, Server: v.Server, Status: 2, ShellResult: res, ShellRuntime: shellRuntime}) //执行成功
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue