Thanks to visit codestin.com
Credit goes to github.com

Skip to content

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.

2 participants