Merge pull request #80 from SeyedHashtag/original

Added total traffic calculation
This commit is contained in:
Whispering Wind
2025-01-20 11:54:17 +03:30
committed by GitHub

View File

@ -65,6 +65,9 @@ if [ -f "$USERS_FILE" ]; then
total_download_human=$(convert_bytes $total_download) total_download_human=$(convert_bytes $total_download)
echo "🔼${total_upload_human} uploaded" echo "🔼${total_upload_human} uploaded"
echo "🔽${total_download_human} downloaded" echo "🔽${total_download_human} downloaded"
total_traffic=$((total_upload + total_download))
total_traffic_human=$(convert_bytes $total_traffic)
echo "📊 ${total_traffic_human} total traffic"
fi fi