quickemu icon indicating copy to clipboard operation
quickemu copied to clipboard

Improve the code used to determine host RAM amount.

Open lj3954 opened this issue 7 months ago • 0 comments

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.

lj3954 avatar Jan 08 '24 06:01 lj3954