mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[PR #4177] [CLOSED] feat: add per-client real-time speed & 24h daily traffic #5619
Labels
No labels
backlog
bug
clarification needed
documentation
duplicate
enhancement
github_actions
good first issue
invalid
javascript
New Feature
PR welcomed
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
MHSanaei/3x-ui#5619
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/MHSanaei/3x-ui/pull/4177
Author: @stivfilippov
Created: 5/6/2026
Status: ❌ Closed
Base:
main← Head:feat/daily-traffic-speed📝 Commits (6)
cb33e72feat: add per-client real-time speed & 24h daily trafficc6cf569Merge branch 'main' into feat/daily-traffic-speed3ab1359Merge branch 'main' into feat/daily-traffic-speed7267220Merge branch 'main' into feat/daily-traffic-speedcbfcfadMerge branch 'main' into feat/daily-traffic-speede3662f4Merge branch 'main' into feat/daily-traffic-speed📊 Changes
7 files changed (+136 additions, -1 deletions)
View changed files
📝
web/assets/css/custom.min.css(+1 -1)📝
web/html/component/aClientTable.html(+23 -0)📝
web/html/inbounds.html(+90 -0)📝
web/service/inbound.go(+12 -0)📝
web/translation/translate.en_US.toml(+2 -0)📝
web/translation/translate.ru_RU.toml(+2 -0)📝
xray/client_traffic.go(+6 -0)📄 Description
Description
Adds two highly requested features to the client table:
Speed) – shows current per-client throughput, calculated with delta logic synced to the dashboard's stats refresh interval (default ~10s).Daily) – tracks up/down traffic per client with automatic reset at 00:00 local time.Implementation
DailyUp,DailyDown,LastDailyResettoxray.ClientTraffic. GORM auto-migrates on startup.addClientTraffic()– counters zero out on first stat fetch after midnight. No cron/goroutines needed.pages.inbounds.speed&pages.inbounds.dailyTraffickeys to all translation files.Testing
-or0Screenshots
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.