Update helper_stats_graphs.yaml

This commit is contained in:
Alexandre
2023-03-23 13:53:19 +01:00
committed by GitHub
parent e90f24c0fa
commit ba12e7fc54

View File

@@ -50,22 +50,22 @@ jobs:
}' Stats3 > StatsTmp && mv StatsTmp .github/Stats3 }' Stats3 > StatsTmp && mv StatsTmp .github/Stats3
cd .github || true cd .github || true
# Add download count to names # Add download count to names
build_list="$(head -n 1 Stats3)" #build_list="$(head -n 1 Stats3)"
# shellcheck disable=SC2206 # shellcheck disable=SC2206
build_list=($build_list) #build_list=($build_list)
# shellcheck disable=SC2013 # shellcheck disable=SC2013
for var in "${build_list[@]:1}"; do #for var in "${build_list[@]:1}"; do
i=0 #i=0
j=0 #j=0
k=0 #k=0
# shellcheck disable=SC2013 # shellcheck disable=SC2013
for i in $(sed -n "/${var}/p" Stats); do # for i in $(sed -n "/${var}/p" Stats); do
k="$((k+1))" # k="$((k+1))"
if [ "$k" -eq 3 ]; then break; fi # if [ "$k" -eq 3 ]; then break; fi
if [ "$i" -eq "$i" ] && [ "$i" -gt "$j" ]; then j="$i"; fi # if [ "$i" -eq "$i" ] && [ "$i" -gt "$j" ]; then j="$i"; fi
done # done
sed -i "s|${var}|${var}_(${j}x)|g" Stats3 #sed -i "s|${var}|${var}_(${j}x)|g" Stats3
done #done
echo "... done" echo "... done"
# Remove series with less than 4 points # Remove series with less than 4 points
sed -i "/^[0-9|-]* [0-9*|-]* [0-9*|-]* -/d" Stats3 sed -i "/^[0-9|-]* [0-9*|-]* [0-9*|-]* -/d" Stats3