[SWDEV-525336] Filter out amd-smi process itself from detection (#638)

* Filter out amd-smi from process detection
* Fixed N/A stripping N/ incorrectly from running elevated processes

Signed-off-by: adapryor <Adam.pryor@amd.com>
Este commit está contenido en:
Pryor, Adam authored and GitHub committed 2025-08-21 11:41:03 -05:00
1 padre ffca095246
commit ad29de4238
2 files changed
+9 -2

No files matched your search

+3 -2
Ver fichero
@@ -239,9 +239,10 @@ class AMDSMILogger():
string_process_value = str(process_value)
if process_key == "name":
# Truncate name if too long
process_name = string_process_value.split('/')[-1][:17]
if process_name == "":
if string_process_value == "" or string_process_value == "N/A":
process_name = "N/A"
else:
process_name = string_process_value.split('/')[-1][:17]
table_values += process_name.rjust(17)
elif process_key == "pid":
table_values += string_process_value.rjust(9)