Code Review
/
csit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
7931481
)
fix(CpuUtils): Improve cpu slice error message
60/42260/9
author
Vratko Polak
<
[email protected]
>
Thu, 5 Jun 2025 08:16:26 +0000
(10:16 +0200)
committer
Vratko Polak
<
[email protected]
>
Thu, 5 Jun 2025 08:16:26 +0000
(10:16 +0200)
Change-Id: I2751fb773a800478603f776807fea17dff9cf3fa
Signed-off-by: Vratko Polak <
[email protected]
>
resources/libraries/python/CpuUtils.py
patch
|
blob
|
history
diff --git
a/resources/libraries/python/CpuUtils.py
b/resources/libraries/python/CpuUtils.py
index
34f6801
..
731469a
100644
(file)
--- a/
resources/libraries/python/CpuUtils.py
+++ b/
resources/libraries/python/CpuUtils.py
@@
-163,7
+163,7
@@
class CpuUtils:
cpu_list_len = len(cpu_list)
if cpu_cnt + skip_cnt > cpu_list_len:
- raise RuntimeError(
u"cpu_cnt + skip_cnt > length(cpu list).
")
+ raise RuntimeError(
f"{cpu_cnt=} + {skip_cnt=} > length({cpu_list=})
")
if cpu_cnt == 0:
cpu_cnt = cpu_list_len - skip_cnt