mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-08-06 00:36:32 +08:00
fail CPU usage test if can't get usage for a process
old-commit-hash: b89d10c086
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