Skip to content

Commit

Permalink
IsActive() should return true only for val > 0 (#772)
Browse files Browse the repository at this point in the history
Signed-off-by: Zbynek Roubalik <zroubali@redhat.com>
  • Loading branch information
zroubalik committed Apr 24, 2020
1 parent de809b6 commit 0c16006
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/scalers/prometheus.go
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ func (s *prometheusScaler) IsActive(ctx context.Context) (bool, error) {
return false, err
}

return val > -1, nil
return val > 0, nil
}

func (s *prometheusScaler) Close() error {
Expand Down

0 comments on commit 0c16006

Please sign in to comment.