-
-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the memory detection more resistant to locale issues
- Certain non-english characters aren't considered "Word characters" in Regex, so \S (any non-whitespace) is now accepted - The `free` command is ran with `LANG=C` to force English output even on non-english systems - If the match fails for any other reason, we simply return 0 bytes total/used (which is at least a valid number, even if it doesn't make sense)
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters