From 21fbd575c3774cf136f29c6c0520ea6da1691615 Mon Sep 17 00:00:00 2001 From: Phil Date: Sat, 22 Jul 2023 19:45:09 +0100 Subject: [PATCH] Added the Iperf3 server IP that was used to both log and discord output. --- Linux/iPerf/speedtest.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Linux/iPerf/speedtest.sh b/Linux/iPerf/speedtest.sh index 8fd40e1..fd51743 100755 --- a/Linux/iPerf/speedtest.sh +++ b/Linux/iPerf/speedtest.sh @@ -64,7 +64,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"),$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" + echo "$(date +"%Y-%m-%d %H:%M:%S"),$IPERF3_SERVER_IP,$ORG,$IP,$DOWNLOAD_Mbps Mbps,$UPLOAD_Mbps Mbps" >> "$LOG_FILE" # Check if the variable is set to 0 elif [ "$log" -eq 0 ]; then @@ -91,6 +91,10 @@ if [ "$discord" -eq 1 ]; then "name": "Time:", "value": "$(date +'%Y-%m-%d %H:%M:%S')" }, + { + "name": "Iperf3 Server Used:", + "value": "$IPERF3_SERVER_IP" + }, { "name": "ISP:", "value": "$ORG"