I have this Conky report on my desktop screen:
This is a relevant part of the conky.conf
file:
${color1}${font ConkySymbols:size=16}J${font} ${voffset -10}Memory» $hr${color}
${color1}${goto 35}RAM : ${color}$mem/$memmax ${alignr}$memperc% ${membar 4,100}
${color1}${goto 35}SWAP: ${color}$swap/$swapmax $alignr}$swapperc% ${swapbar 4,100}
However when I run free -m
I get this:
Which is 2GB less than the Conky's report (6GB vs 8.3GB).
I also tried running the mem
command in terminal, but the command is not recognized.
How to run in the terminal the command that Conky uses to find used/free RAM stats and why is there a difference with the free -m
command?
EDIT:
${color1}${goto 35}RAM: ${execi 10 free --si -m|awk '/^Mem/{printf "%.2f",$3/1024}'}/$memmax ${execi 10 free --si -m|awk '/^Mem/{printf "%.1f%%", 100*$3/$2}'} \
${execibar 10 free --si -m|awk '/^Mem/{print 100*$3/$2}'}