Shell timeout log only every 10 seconds

pull/26/merge
Paulo Truta 2024-11-04 13:36:52 +01:00
parent 80fc8b40cd
commit b11034dd17
1 changed files with 3 additions and 1 deletions

View File

@ -1077,7 +1077,9 @@ func taskStartShell(args taskStartShellArgs) string {
utils.WriteOption("SHELL_STATUS", "not_running")
break
}
fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds")
if timeout%10 == 0 {
fmt.Println("Active Shell Timeout is " + fmt.Sprint(timeout) + " seconds")
}
time.Sleep(1 * time.Second)
}
}()