mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-12-03 21:18:19 +07:00
[GH-ISSUE #6771] [Feature]: Option to show network speed in bits per second (Mbit/s) on the dashboard #4508
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#4508
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?
Originally created by @Sorokinkir-ctrl on GitHub (Oct 8, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/6771
Is your feature request related to a problem?
The dashboard shows network throughput only in bytes per second (KB/s, MB/s), both in the "Total traffic speed" chart and in the upload/download counters. ISPs, hosting providers and speed tests (Speedtest, iperf) all report bandwidth in bits per second (Mbit/s, Gbit/s), so I have to multiply every value by 8 in my head to compare the panel with my VPS port speed or a client's speed test. For example, a peak of 24.18 MB/s is actually ~193 Mbit/s, which is not obvious at a glance.
Describe the solution you'd like
Add a display setting (Panel Settings, or a small toggle on the chart itself) to choose the speed unit: bytes/s (current default) or bits/s.
Alternatives you've considered
Concrete use case
I run a small VPS (1 vCPU, 1 GB RAM, panel v3.9.0, Xray 26.9.30) with 3 VLESS/Reality inbounds shared by family members. The hosting port speed and the speed tests my users run on their phones are all in Mbit/s, while the panel shows MB/s. Being able to switch the dashboard to Mbit/s would let me compare the chart directly with the port limit and with speed test results
Mockups, screenshots, or examples
No response
Which parts of the panel would this affect?
No response
Are you willing to help?
Before submitting
@github-actions[bot] commented on GitHub (Oct 8, 2026):
This is a valid feature request. The panel has no bits-per-second display mode today: every rate on the dashboard goes through one byte-based formatter, and there is no setting to switch it.
How rates are shown now
frontend/src/utils/index.ts:726-728,SizeFormatter.speedFormat, just adds/sto the size formatter:frontend/src/pages/index/ThroughputCard.tsx, uses it for the peak (line 45), the live up/down values (lines 52 and 57), the chart axis (yFormatter={SizeFormatter.speedFormat}, line 77) and the period averages (lines 96-97). The per-inbound and per-client speed tags (InboundSpeedTag.tsx,ClientSpeedTag.tsx) use the same function.Because every rate goes through this one function, a unit toggle would only need to change one place. Traffic totals use
sizeFormatdirectly, so they would stay in bytes, as you asked.One detail affects your conversion example.
sizeFormatuses 1024-based steps (ONE_KB = 1024,ONE_MB = ONE_KB * 1024,utils/index.ts:709-710), even though it labels themKB/MB. So the 24.18 "MB/s" in your example is 24.18 × 1,048,576 bytes/s, which is about 202.8 Mbit/s. Your estimate of ~193 Mbit/s assumes 1,000,000 bytes per MB. Until this feature exists, multiply the shown value by about 8.39, not 8, to get decimal Mbit/s.I found no earlier issue asking for this.
Verdict: Feature request
This reply was generated automatically; a maintainer may follow up.