Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
hru-delin-dev
hru-delin
Compare Revisions
a269c7dc8825d7cd83aee0022e228e8cbc6a95bf...9bdf117b63e722ee862f184e97b0ecd1c138c19e
Commits (1)
attempt to fix problem if stats are empty in formatNm
· 9bdf117b
Julien Veyssier
authored
May 04, 2020
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
9bdf117b
Hide whitespace changes
Inline
Side-by-side
modules/awk.py
View file @
9bdf117b
...
...
@@ -14,8 +14,9 @@ def formatNm(bas, topoToHruTmpPath, topoBflTmpPath, stats):
# group stats by second column value
for
stat
in
stats
:
statSpl
=
stat
.
strip
().
split
()
second
=
statSpl
[
2
]
statDict
[
second
].
append
(
statSpl
)
if
len
(
statSpl
)
>
2
:
second
=
statSpl
[
2
]
statDict
[
second
].
append
(
statSpl
)
# one value = one result line with accumulated values
for
sec
in
statDict
:
...
...