lxpanel memory monitor displayed a used memory different to "free -m" which is really confusing.
After checking the calculations "free" doesn't consider SReclaimable memory (from /proc/meminfo) to be used.
In this patch lxpanel does the same as "free".
procps "free" suggests that SReclaimable was added in the Kernel 2.6.19. It was released in 2006, if this field doesn't exist the memory monitor displays "0"
Same patch with a comment about the Kernel version in the commit message.
If this is ok for lxpanel (as attached here) I'll make a similar change in lxtask (so it's aligned with "free" and lxpanel with the attached patch).
Same change for lxtask:
https://sourceforge.net/p/lxde/patches/555/
Let me know if this is wanted at all or if any other changes would be required.
Thank you!
Thank you very much for a patch. Looks fine, added it into GIT sources, will come into next lxpanel release.