Skip to content

Commit

Permalink
Merge pull request #80 from SeyedHashtag/original
Browse files Browse the repository at this point in the history
Added total traffic calculation
  • Loading branch information
ReturnFI authored Jan 20, 2025
2 parents 729a633 + 628cb99 commit 0d6cb44
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion core/scripts/hysteria2/server_info.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,9 @@ if [ -f "$USERS_FILE" ]; then
total_download_human=$(convert_bytes $total_download)

echo "🔼${total_upload_human} uploaded"

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

0 comments on commit 0d6cb44

Please sign in to comment.