Skip to content

Commit 865a49b

Browse files
author
Mikael Mollberg
committed
Fix process name parsing in graphs.sh
The script would incorrectly split process names with underscores. Take what is between 'mem_' and '.log' instead.
1 parent c045ed5 commit 865a49b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

graphs.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ mkdir graphs/$1
2828

2929
for filename in data/$1/*.log; do
3030
if [ $PY_CHECK -eq 1 ]; then
31-
name=$(echo $filename | awk -F'_' '{print $2}'| awk -F'.' '{print $1}')
31+
name=$(echo $filename | awk -F'/' '{print $NF}' | awk -F'mem_|\.log' '{print $2}')
3232
else
3333
name=$1
3434
fi

0 commit comments

Comments
 (0)