How can I display memory usage percentage properly?

Asked by MaXo

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
MaXo (mahmood-188) said :
#2

Thanks Michael Hofmann, that solved my question.