Added the Iperf3 server IP that was used to both log and discord output.

This commit is contained in:
Phil 2023-07-22 19:45:09 +01:00
parent e84643e096
commit 21fbd575c3

View File

@ -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"