Corrected throttle status value check

Signed-off-by: Maisam Arif <Maisam.Arif@amd.com>
Change-Id: I2d75108c64c3ca3e290be1dd5b8c1435c5576f91
This commit is contained in:
Maisam Arif
2024-09-30 13:23:45 -05:00
parent a266d602c5
commit b233db729b
+3 -2
View File
@@ -2146,9 +2146,10 @@ class AMDSMICommands():
for key, value in throttle_status.items():
if "active" in key:
throttle_status[key] = "NOT ACTIVE"
if value:
if value is True:
throttle_status[key] = "ACTIVE"
elif value is False:
throttle_status[key] = "NOT ACTIVE"
continue
if "percent" not in key: