Update minimax-cn-coding-plan.js (#864)
* Update minimax-cn-coding-plan.js Signed-off-by: nzlov <wfhtqp@gmail.com> * Update minimax-cn-coding-plan.js Signed-off-by: nzlov <wfhtqp@gmail.com> --------- Signed-off-by: nzlov <wfhtqp@gmail.com>
This commit is contained in:
@@ -88,9 +88,8 @@ export const fetchQuota = async () => {
|
||||
const weeklyStartAt = toTimestamp(firstModel.weekly_start_time);
|
||||
const weeklyResetAt = toTimestamp(firstModel.weekly_end_time);
|
||||
|
||||
// For minimaxi.com: usage_count represents USED credits
|
||||
const intervalUsed = intervalUsage;
|
||||
const weeklyUsed = weeklyUsage;
|
||||
const intervalUsed = intervalTotal - intervalUsage;
|
||||
const weeklyUsed = weeklyTotal - weeklyUsage;
|
||||
|
||||
const intervalUsedPercent =
|
||||
intervalTotal > 0 && intervalUsed != null
|
||||
|
||||
Reference in New Issue
Block a user