Skip to content

Commit

Permalink
[coconut] Display number of active/inactive/total tasks in env
Browse files Browse the repository at this point in the history
  • Loading branch information
teo committed Sep 1, 2023
1 parent ecd3c81 commit fb2e891
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions coconut/control/control.go
Original file line number Diff line number Diff line change
Expand Up @@ -434,6 +434,9 @@ func CreateEnvironment(cxt context.Context, rpc *coconut.RpcClient, cmd *cobra.C
_, _ = fmt.Fprintf(o, "description: %s\n", env.GetDescription())
_, _ = fmt.Fprintf(o, "state: %s\n", colorState(env.GetState()))
_, _ = fmt.Fprintf(o, "public: %v\n", response.Public)
_, _ = fmt.Fprintf(o, "tasks active: %v\n", env.GetNumberOfActiveTasks())
_, _ = fmt.Fprintf(o, "tasks inactive: %v\n", env.GetNumberOfInactiveTasks())
_, _ = fmt.Fprintf(o, "tasks total: %v\n", env.GetNumberOfTasks())

var (
defaultsStr = stringMapToString(env.Defaults, "\t")
Expand Down

0 comments on commit fb2e891

Please sign in to comment.