From db33ec1969ef156864dbbe253663fa09c6c0cc13 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 16 Sep 2023 12:30:23 +0100 Subject: [PATCH] Fixed error when logging speedtest-cli result to csv file --- Linux/speedtest.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Linux/speedtest.sh b/Linux/speedtest.sh index 5da7a35..660bec3 100644 --- a/Linux/speedtest.sh +++ b/Linux/speedtest.sh @@ -222,7 +222,7 @@ if [ "$log" -eq 1 ]; then echo "Variable is set to 1. Running command A." # Append the result to the log file - echo "$(date +"%Y-%m-%d %H:%M:%S"),,Speedtest.net,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" + echo "$(date +"%Y-%m-%d %H:%M:%S"),$WAN,Speedtest.net,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" # Check if the variable is set to 0 elif [ "$log" -eq 0 ]; then