Skip to content

Commit

Permalink
Fixed one comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parauliya committed Nov 20, 2019
1 parent 7a5f405 commit aca143f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/rover/cmd/workflow/state.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ var stateCmd = &cobra.Command{
}

func calWorkflowProgress(cur int64, total int64, state workflow.ActionState) string {
if total == 0 || (cur == 0 && state != 2) {
if total == 0 || (cur == 0 && state != workflow.ActionState_ACTION_SUCCESS) {
return "0%"
}
var taskCompleted int64
Expand Down

0 comments on commit aca143f

Please sign in to comment.