From e1ad84e6a90c9bf8b6504f50b717ccf6e0e1e10f Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 16 Sep 2023 12:14:04 +0100 Subject: [PATCH] Updated Linuxscript so it logs the WAN number to the csv file. This is so if you combine multiple files it you can tell logs appart. --- Linux/speedtest.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Linux/speedtest.sh b/Linux/speedtest.sh index 52da8f9..5da7a35 100644 --- a/Linux/speedtest.sh +++ b/Linux/speedtest.sh @@ -105,7 +105,7 @@ if [ "$log" -eq 1 ]; then echo "Log Variable is set to 1. Writing to log." # Append the result to the log file - echo "$(date +"%Y-%m-%d %H:%M:%S"),iperf3,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" + echo "$(date +"%Y-%m-%d %H:%M:%S"),$WAN,iperf3,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" # Check if the variable is set to 0 elif [ "$log" -eq 0 ]; then @@ -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"),,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