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

Add option in humanize function to convert to kiB, MiB, GiB instead of kB, MB, GB #3266

Closed
cybiosity-syn opened this issue Feb 1, 2024 · 1 comment

Comments

@cybiosity-syn
Copy link

The humanize function converts bytes to kB, MB, GB, etc... which are the number of bytes divided by 1000 (a certain number of times).

It would be cool if there was a parameter to the humanize function to convert to kiB, MiB, GiB instead (divided by 1024 a certain number of times).

@scudette
Copy link
Contributor

scudette commented Feb 1, 2024

This is already available since today I submitted #3258

Bytes int64 `vfilter:"optional,field=bytes,doc=Format bytes with units (e.g. MB)"`

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

No branches or pull requests

2 participants