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

Adding options to display filesystem storage size output in a specific unit #3006

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

SWarrener
Copy link

@SWarrener SWarrener commented Aug 31, 2023

What type of PR is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Other: Replace this with a description of the type of this PR

Description

This adds new formatting options to the filesystem which allow the user to force the displayed storage amount in to be in a specific unit, that does not change depending on amount available. For example the user could specify gb_free and the output would always be in Gigabytes, even when over 1000 or under 1.

While it is inconsistent with how storage device manufacturers market their products, I use the system that each unit is 1024 of the unit immediately smaller than it rather than 1000, to be consistent with existing code.

Related Issues & Documents

Documentation (check all applicable)

  • This PR requires changes to the Wiki documentation (describe the changes)
  • This PR requires changes to the documentation inside the git repo (please add them to the PR).
  • Does not require documentation changes

The new options would need adding to the wiki

@Samueru-sama
Copy link

Please merge this!

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.

None yet

2 participants