Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
debug: spec.sh: Express memory in MB instead of GB
The spec.sh script gets the amount of available memory of the device from /proc/meminfo, which contains the total amount of installed memory minus the non-usable memory (reserved areas, etc) in KB. Then, awk is used to divide the value by 1024^2 and get the final value in GB. However, the integer division will round down the final value, so if the final value should be, for instance, 3.7GB, it will be converted to 3GB, missing around 700MB of usable RAM memory. This commit changes the spec.sh to provide the total amount of available memory in MB instead of GB in order to increase the granularity and avoid missing substantial amounts of usable memory. Signed-off-by: Renê de Souza Pinto <[email protected]>
- Loading branch information