[GH-ISSUE #3626] Bug report Traffic Usage & Remaining Online User #2434

Closed
opened 2026-10-31 20:25:29 +07:00 by bsakaguchi · 4 comments
Owner

Originally created by @kingpersian on GitHub (Jan 4, 2026).
Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3626

Describe the bug

Hi and thanks for the great work on the WebSocket realtime update feature.

After updating to v2.8.6, I noticed a regression in the inbound user traffic display:

When a user is online, the panel shows the current realtime bandwidth usage instead of the total consumed traffic.
As a result, the “remaining traffic” is calculated incorrectly because it subtracts the realtime bandwidth from the total quota.

When the user goes offline, the values return to normal and the correct total-used traffic is shown.

So the issue only happens while the user is online and WebSocket updates are active.

Expected behavior:

  • Show the user’s total consumed traffic at all times (online or offline)
  • Realtime bandwidth should not replace the total-used value

Actual behavior:

  • Realtime bandwidth temporarily replaces total-used traffic when user is online
  • Remaining quota becomes incorrect

This affects all inbounds with traffic limits.

Thanks for checking this. The feature is great, just needs a small fix.

How to repeat the problem?

  1. Open Inbound
  2. Usage Online User's is not Correct & Remaining Usage
  3. When User is Offline is ok

Expected action

No response

Received action

No response

3x-ui Version

2.8.6

Xray-core Version

No response

Checklist

  • This bug report is written entirely in English.
  • This bug report is new and no one has reported it before me.
Originally created by @kingpersian on GitHub (Jan 4, 2026). Original GitHub issue: https://github.com/MHSanaei/3x-ui/issues/3626 ### Describe the bug Hi and thanks for the great work on the WebSocket realtime update feature. After updating to v2.8.6, I noticed a regression in the inbound user traffic display: When a user is **online**, the panel shows the **current realtime bandwidth usage** instead of the **total consumed traffic**. As a result, the “remaining traffic” is calculated incorrectly because it subtracts the realtime bandwidth from the total quota. When the user goes **offline**, the values return to normal and the correct total-used traffic is shown. So the issue only happens while the user is online and WebSocket updates are active. Expected behavior: - Show the user’s **total consumed traffic** at all times (online or offline) - Realtime bandwidth should not replace the total-used value Actual behavior: - Realtime bandwidth temporarily replaces total-used traffic when user is online - Remaining quota becomes incorrect This affects all inbounds with traffic limits. Thanks for checking this. The feature is great, just needs a small fix. ### How to repeat the problem? 1. Open Inbound 2. Usage Online User's is not Correct & Remaining Usage 3. When User is Offline is ok ### Expected action _No response_ ### Received action _No response_ ### 3x-ui Version 2.8.6 ### Xray-core Version _No response_ ### Checklist - [x] This bug report is written entirely in English. - [x] This bug report is new and no one has reported it before me.
bsakaguchi 2026-10-31 20:25:29 +07:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@wulfric93 commented on GitHub (Jan 4, 2026):

confirmd
it also happens to my panel

<!-- gh-comment-id:3708387693 --> @wulfric93 commented on GitHub (Jan 4, 2026): confirmd it also happens to my panel
Author
Owner

@hessamku commented on GitHub (Jan 4, 2026):

I can confirm that I am also experiencing the same issue.
The data usage for users is shown as 70 KB.
I am using Ubuntu version 24.
Before the upgrade, I was on the latest version and upgraded via the terminal.
I would appreciate it if this issue could be resolved in the new update.

<!-- gh-comment-id:3708498034 --> @hessamku commented on GitHub (Jan 4, 2026): I can **confirm** that I am also experiencing the same issue. The data usage for users is shown as 70 KB. I am using Ubuntu version 24. Before the upgrade, I was on the latest version and upgraded via the terminal. I would appreciate it if this issue could be resolved in the new update.
Author
Owner
<!-- gh-comment-id:3710538766 --> @solidwar commented on GitHub (Jan 5, 2026): https://github.com/user-attachments/assets/5cc691d5-95c5-48a9-b961-33aab339f66e
Author
Owner

@rialTresH commented on GitHub (Jan 5, 2026):

Confirm

<!-- gh-comment-id:3710795784 --> @rialTresH commented on GitHub (Jan 5, 2026): Confirm
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MHSanaei/3x-ui#2434
No description provided.