fix: Remove extra % in awk printf

main
Sean McBride 4 years ago
parent b08a0ada39
commit 97e8c58cca

@ -57,7 +57,7 @@ for ((i = 1; i < 2; i++)); do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -60,7 +60,7 @@ for ((i = 0; i < 2; i++)); do
awk -F, ' awk -F, '
$7 == 200 {denom++} $7 == 200 {denom++}
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / denom * 100)} END{printf "'"$payload"',%3.5f\n", (ok / denom * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -58,7 +58,7 @@ for ((i = 0; i < 1; i++)); do
awk -F, ' awk -F, '
$7 == 200 {denom++} $7 == 200 {denom++}
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / denom * 100)} END{printf "'"$payload"',%3.5%\n", (ok / denom * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -28,7 +28,7 @@ for ((i = 0; i < 2; i++)); do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -62,7 +62,7 @@ for ((i = 0; i < 2; i++)); do
awk -F, ' awk -F, '
$7 == 200 {denom++} $7 == 200 {denom++}
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / denom * 100)} END{printf "'"$payload"',%3.5f\n", (ok / denom * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -74,7 +74,7 @@ for scheduler in ${schedulers[*]}; do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -62,7 +62,7 @@ for payload in ${payloads[*]}; do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 {ok++} $7 == 200 {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -28,7 +28,7 @@ for payload in ${payloads[*]}; do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 {ok++} $7 == 200 {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

@ -74,7 +74,7 @@ for scheduler in ${schedulers[*]}; do
# Calculate Success Rate for csv # Calculate Success Rate for csv
awk -F, ' awk -F, '
$7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++} $7 == 200 && ($1 * 1000) <= '"$deadline"' {ok++}
END{printf "'"$payload"',%3.5f%\n", (ok / (NR - 1) * 100)} END{printf "'"$payload"',%3.5f\n", (ok / (NR - 1) * 100)}
' < "$results_directory/$payload.csv" >> "$results_directory/success.csv" ' < "$results_directory/$payload.csv" >> "$results_directory/success.csv"
# Filter on 200s, convery from s to ms, and sort # Filter on 200s, convery from s to ms, and sort

Loading…
Cancel
Save