Skip to content

fix(quota): correct column order in --quiet output (#91)#95

Open
Zarbel974 wants to merge 1 commit intoMiniMax-AI:mainfrom
Zarbel974:fix/quota-remaining-vs-used
Open

fix(quota): correct column order in --quiet output (#91)#95
Zarbel974 wants to merge 1 commit intoMiniMax-AI:mainfrom
Zarbel974:fix/quota-remaining-vs-used

Conversation

@Zarbel974
Copy link
Copy Markdown

Fix: quota --quiet column order

The API field current_interval_usage_count actually contains the remaining quota, not the usage count. This caused confusing output in --quiet mode where columns were labeled name | remaining | total | used.

Changes

  • Renamed variable for clarity (the misleading name was causing confusion)
  • Reordered output to: name | used | total | remaining

Note

The table display (mmx quota show) already computed used = total - remaining correctly. The bug was only in --quiet mode.

Fixes: #91


Submitted via mmx-cli contributor workflow

The API field 'current_interval_usage_count' actually contains the
remaining quota (not usage). The --quiet output was displaying the
columns in misleading order: name | remaining | total | used

This fix renames the variable for clarity and reorders the output:
name | used | total | remaining

Fixes: MiniMax-AI#91
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.

1 participant