Skip to content

Commit

Permalink
Fix infinite sub traffic
Browse files Browse the repository at this point in the history
  • Loading branch information
problematicconsumer committed Jan 12, 2024
1 parent 3c38d6a commit 0fc7985
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/features/profile/data/profile_parser.dart
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,14 @@ abstract class ProfileParser {
case {
"upload": final upload?,
"download": final download?,
"total": final total,
"total": var total,
"expire": final expire
}) {
total = total ?? 0;
return SubscriptionInfo(
upload: upload,
download: download,
total: total ?? 9223372036854775807,
total: total == 0 ? 9223372036854775807 : total,
expire: DateTime.fromMillisecondsSinceEpoch(
(expire ?? 92233720368) * 1000,
),
Expand Down

0 comments on commit 0fc7985

Please sign in to comment.