This commit is contained in:
2025-11-04 14:30:58 -07:00
parent 5ef51abb2b
commit eae4837202
+1 -2
View File
@@ -84,14 +84,13 @@ else
# settans # settans
len=$(wc -l "$input" | awk '{print $1}') # num of lines in da fiel len=$(wc -l "$input" | awk '{print $1}') # num of lines in da fiel
count=1 count=1
test_cmd="$(echo \"$input\" | sed 's/\ /_/g')"
# add da csv headers to the results fiel # add da csv headers to the results fiel
echo "0Position,CPU %,Memory (KiB),Memory %,KiB Read/Second,KiB Written/Second,Duration Microseconds,Command,Return Code" > "$csv_file" echo "0Position,CPU %,Memory (KiB),Memory %,KiB Read/Second,KiB Written/Second,Duration Microseconds,Command,Return Code" > "$csv_file"
cat "$input" | \ cat "$input" | \
while read line; do while read line; do
test_cmd="$line" test_cmd="$(echo \"$line\" | tr ' ' '_')"
position="$count/$len" position="$count/$len"
measure_performance measure_performance
count=$(($count + 1)) count=$(($count + 1))