This repository has been archived by the owner on May 31, 2021. It is now read-only.
Fix diskusage crash on unsupported platforms + add freebsd #829
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When using flood on an unsupported platform, the app wasn't loading because of this exception:
Description
I put in a check for supported platforms on that function. Since the freebsd df output is the same as linux I also added it as a supported platform with a small refactor
A note about the
maxBuffer
change: My df output is currently 31045 bytes long. In my case this is because of hundreds of rar2fs mounts to make rar downloads plex-friendly. Perhaps filtering filesystems like these before parsing them in node could be an option since the disk usage from these is useless. Don't want to handle this in a bugfix pr though.Motivation and Context
Flood stopped working on freebsd after I pulled master today
How Has This Been Tested?
Ran it on freebsd
Types of changes
Checklist: