quickemu
quickemu copied to clipboard
Improve the code used to determine host RAM amount.
Fixes #899
Current RAM check is not very versatile. It functions by printing out text following the colon, preceding the first instance of the character 'G', excluding spaces. This will throw an error on systems with under 1GB or over 1000GB of memory, since 'G' does not follow the first value, and it's not possible to round (or use the greater than/equal to operator) on strings. This resolves that issue, as well as removing the need for rounding in the first place, since free --giga does not print out floating point values.