mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-09-28 18:33:45 +08:00
fail CPU usage test if can't get usage for a process
old-commit-hash: b89d10c086a6d6b8d881af58f859db9e40c7ee67
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user