File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ func getRunningTasks(c *fiber.Ctx) error {
211211 currentTaskStatus := "There are no running tasks"
212212
213213 if len (Containers ) > 0 {
214- currentTaskStatus = fmt .Sprintf ("%s task(s) running" , strconv .Itoa (len (Containers )- 1 ))
214+ currentTaskStatus = fmt .Sprintf ("%s task(s) running" , strconv .Itoa (len (Containers )- 2 ))
215215 }
216216
217217 return c .Render ("tasks" , fiber.Map {
Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ func CountRunningContainer() int {
102102 if isContainer == "" {
103103 return len (containers )
104104 }
105- // -1 otherwise the current process will also be counted as a running container
106- return len (containers ) - 1
105+ // 21 otherwise the current process and redis will also be counted as a running container
106+ return len (containers ) - 2
107107}
108108
109109// tailLog tails the log of the container with the given ID
You can’t perform that action at this time.
0 commit comments