How can I display memory usage percentage properly?

Asked by MaXo on 2013-10-22

Maybe "mem.*" variables can use a unified unit?

PS: this doesn't work properly when user memory is less than 1G (it shows %5000 !):
%$(size(mem.user)*100/size(mem.total))

Question information

Language:
English Edit question
Status:
Solved
For:
System Load Indicator Edit question
Assignee:
No assignee Edit question
Solved by:
Michael Hofmann
Solved:
2013-10-24
Last query:
2013-10-24
Last reply:
2013-10-24
Best Michael Hofmann (mh21) said : #1

Hi MaXo,

thanks for the question! Try it with "Mem: $(percent(mem.user/mem.total))", does this do what you want?

Michael

MaXo (mahmood-188) said : #2

Thanks Michael Hofmann, that solved my question.