Skip to content

Commit

Permalink
Fix amdsmi_get_clk_freq list size
Browse files Browse the repository at this point in the history
Python list slice is exclusive for the end index, so this -1 is cutting off an element.

Change-Id: I309a0a41447405b1aac465472871e169f2c405e8
Signed-off-by: Galantsev, Dmitrii <[email protected]>
  • Loading branch information
bsngardner authored and dmitrii-galantsev committed Sep 16, 2024
1 parent d75d127 commit a3b0bc5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion py-interface/amdsmi_interface.py
Original file line number Diff line number Diff line change
Expand Up @@ -3534,7 +3534,7 @@ def amdsmi_get_clk_freq(
return {
"num_supported": freq.num_supported,
"current": freq.current,
"frequency": list(freq.frequency)[: freq.num_supported - 1],
"frequency": list(freq.frequency)[: freq.num_supported],
}


Expand Down

0 comments on commit a3b0bc5

Please sign in to comment.