lclarkmichalek / archey3

Simple python script to print the Archlinux logo with basic system information.
http://bluepeppers.github.com/archey3
Other
62 stars 27 forks source link

Make ram() option locale independent #41

Open mgoerlich-dev opened 7 years ago

mgoerlich-dev commented 7 years ago

I updated the ram module to make it independent from the users locale. Before it used the free(1) command and looked for the String "Mem:" to detect the desired output values, but this aproach will break on any non-english system. Now the module reads the data from /proc/meminfo and calculates the desired values on its own, just like free(1) does.

Possible improvements: