Skip to content

Commit

Permalink
fail CPU usage test if can't get usage for a process
Browse files Browse the repository at this point in the history
  • Loading branch information
adeebshihadeh committed Jun 23, 2020
1 parent 09e7d4a commit b89d10c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/manager_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ def print_cpu_usage(first_proc, last_proc):
print(f"{proc_name.ljust(35)} {cpu_usage:.2f}%")
except IndexError:
print(f"{proc_name.ljust(35)} NO METRICS FOUND")
r = 1
print("------------------------------------------------")

return r

0 comments on commit b89d10c

Please sign in to comment.