Skip to content

fix(profile): align infinite traffic threshold with unlimited display check#2055

Open
Joursoir wants to merge 1 commit intohiddify:mainfrom
Joursoir:fix-display-unlim-subs
Open

fix(profile): align infinite traffic threshold with unlimited display check#2055
Joursoir wants to merge 1 commit intohiddify:mainfrom
Joursoir:fix-display-unlim-subs

Conversation

@Joursoir
Copy link

When a subscription sends total=0 (meaning unlimited traffic), the parser maps it to infiniteTrafficThreshold + 1 (~857 GiB). But the UI only shows ∞ GiB when total > 10 TiB. Since 857 GiB < 10 TiB, the app incorrectly displays a finite quota and Quota exceeded warnings.

  1. Set infiniteTrafficThreshold value from 857 GiB to 10 TiB to match the display threshold
  2. Replaced hardcoded magic number 10 * 1099511627776 with ProfileParser.infiniteTrafficThreshold for a single source of truth

Fixes #1974

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Subscription-Userinfo total=0 is treated as quota exceeded instead of unlimited

1 participant