[SWDEV-508042] Fix TypeError in specific clocks csv logging (#57)
Logging specific clocks in csv format was causing TypeError as the levels were int.
Fixed this by appending Level string at the beginning.
Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>
[ROCm/amdsmi commit: e3e11835e4]
This commit is contained in:
zatwierdzone przez
GitHub
rodzic
9617b9c269
commit
a725ae078c
@@ -948,9 +948,9 @@ class AMDSMICommands():
|
||||
for level in range(len(frequencies['frequency'])):
|
||||
if frequencies['frequency'][level] != "N/A":
|
||||
freq = str(self.helpers.convert_SI_unit(frequencies['frequency'][level], AMDSMIHelpers.SI_Unit.MICRO)) + " MHz"
|
||||
freq_dict['frequency_levels'].update({level:freq})
|
||||
freq_dict['frequency_levels'].update({f"Level {level}":freq})
|
||||
else:
|
||||
freq_dict['frequency_levels'].update("N/A")
|
||||
freq_dict['frequency_levels'].update({f"Level {level}":"N/A"})
|
||||
else:
|
||||
freq_dict = "N/A"
|
||||
except amdsmi_exception.AmdSmiLibraryException as e:
|
||||
|
||||
Reference in New Issue
Block a user