Added total traffic calculation

This commit is contained in:
Seyed Mahdi
2025-01-20 00:00:36 +03:30
parent 729a63375b
commit 803689a9cc

View File

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