Closed vinipsmaker closed 4 years ago
interesting. Can you post the output of this (should be the same regardless of whether you export LANG=C
)?
free | awk -v format="%3.1f%%\n" '$1 ~ /Mem/ {printf(format, 100*$3/$2)}'
The new command works regardless of my LANG
env. However I don't think it's safe. Memory is translated as memória in my language. The translated string is probably just the first letters because it didn't fit in space. I bet it'd fail on other languages.
the only difference was Mem:
versus Mem.:
which seems more silly than a language change - it implies in future even LANG=C
may break if it changes to add the extra dot.
I only use the CPU and RAM script. Only RAM needed.