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
Commits
9bdf117b
Unverified
Commit
9bdf117b
authored
May 04, 2020
by
Julien Veyssier
Browse files
attempt to fix problem if stats are empty in formatNm
Signed-off-by:
Julien Veyssier
<
eneiluj@posteo.net
>
parent
a269c7dc
Changes
1
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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment