From a3b0bc53907fbdf49e7dcc5b21ba0b7df5b361a3 Mon Sep 17 00:00:00 2001 From: Broderick Gardner Date: Thu, 15 Aug 2024 10:34:47 -0600 Subject: [PATCH] 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 --- py-interface/amdsmi_interface.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py-interface/amdsmi_interface.py b/py-interface/amdsmi_interface.py index 212571f2..bdc034ee 100644 --- a/py-interface/amdsmi_interface.py +++ b/py-interface/amdsmi_interface.py @@ -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], }