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

Series enhancement for unit prefix #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Low-power
Copy link

This change fix and add followings:

  • Correct prefix names of IEC binary prefixes that prevously used in the program (ex. M -> Mi, G -> Gi).
  • Add support of using SI metric prefixes (power of 1000 instead of 1024).

Option -u and -U handling has been changed to support select binary or metric prefix, as following format:
[-u h|b|k|m|g|H|B|K|M|G[i|s]] [-U h|b|k|m|g|H|B|K|M|G[i|s]]

The optional second character could be used in argument of -u and -U, that specfiying IEC (i) or SI (s) prefix. Since nload has previously always use binary prefixes for data calculation, IEC binary prefix is the default.

The help message has been updated accordingly.

For example to use human readable metric prefix with bit for data rate, and gibi binary prefix with byte for total amount of data, run:
nload -u hs -U Gi

@Low-power Low-power changed the title Use correct names for binary prefixes; Add support of metric prefixes Series enhancement for unit prefix Aug 6, 2019
@Low-power
Copy link
Author

The latest commit added some additional larger units as requested in #13.

Copy link

@jknoxdev jknoxdev left a comment

Choose a reason for hiding this comment

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

LGTM!

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