Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update default memory format #1932

Merged
merged 1 commit into from
Aug 14, 2023
Merged

Update default memory format #1932

merged 1 commit into from
Aug 14, 2023

Conversation

bim9262
Copy link
Collaborator

@bim9262 bim9262 commented Aug 12, 2023

Based on conversation in #1930

@@ -86,7 +86,7 @@ pub async fn run(config: &Config, api: &CommonApi) -> Result<()> {
.await?;

let mut format = config.format.with_default(
" $icon $mem_avail.eng(prefix:M)/$mem_total.eng(prefix:M)($mem_total_used_percents.eng(w:2)) ",
" $icon $mem_used.eng(prefix:Mi)/$mem_total.eng(prefix:Mi)($mem_used_percents.eng(w:2)) ",
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just wanted to double check, do you think using the mem_ued and base 2 units is the way to go?

I tried to do some research about what is used (base 2 or 10) and I believe RAM and disk size are usually reported with base 2 units while network speed is measured in base 10 units.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably. At least, htop does so.

@MaxVerevkin MaxVerevkin merged commit 25123ff into greshake:master Aug 14, 2023
11 checks passed
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.

2 participants