Fix amdsmi_get_clk_freq list size
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 <dmitrii.galantsev@amd.com>
[ROCm/amdsmi commit: a3b0bc5390]
Этот коммит содержится в:
коммит произвёл
Dmitrii Galantsev
родитель
0f77bf659b
Коммит
c8a3c9a6f3
@@ -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],
|
||||
}
|
||||
|
||||
|
||||
|
||||
Ссылка в новой задаче
Block a user