Skip to content

Commit

Permalink
perf: set max free quota to 0.9x
Browse files Browse the repository at this point in the history
  • Loading branch information
tisfeng committed Dec 18, 2023
1 parent bd922f3 commit 63a6025
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Easydict/Feature/ViewController/Storage/EZLocalStorage.m
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ - (BOOL)hasFreeQuotaLeft:(EZQueryService *)service {
/**
例如腾讯翻译每月有500万免费字符,假如当前有1000个用户,则每人可以使用字符数为:500万/1000 = 5千
*/
CGFloat freeCount = [service totalFreeQueryCharacterCount] / kTotalUserCount;
CGFloat freeCount = [service totalFreeQueryCharacterCount] * 0.9 / kTotalUserCount;
return record.queryCharacterCount < freeCount;
}

Expand Down

0 comments on commit 63a6025

Please sign in to comment.