-
Notifications
You must be signed in to change notification settings - Fork 4
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
Change usage output to percent #18
Conversation
- Removes unused --no-unallocated flag. This flag was never used and `--unallocated` is better suited for the use-case.
@bratkartoffel I think is more what you and also me would expect, right? |
Nope, that results in showing the 99.49% as usage again, whereas 24% should be correct:
// Edit: And setting the
// Edit-2: I think, the unallocated stuff should only count to Thank you so much for taking care of these issues so fast! |
Yeah I think I see my mistake... Thanks for the feedback |
First) Had a look at the code a bit. The Setting the So removing or reworking the Second) I think the But I have to read up on btrfs and the intention of this plugin (I didn't write it and is was ported from an older Perl based script from what I can tell). Right now, I guess the intention was to compare these usage in percent against the given warning/critical thresholds:
So |
OK I think it's back to the drawing board for this one. I'll move the conversation to the Issue #17 |
--unallocated
is better suited for the use-case.Fixes #17