Query: inputs.mem plugin telegraf

Which linux property is used by the inputs.mem plugin in telegraf. Is it getting the values from /proc/meminfo or free -b or any other linux command?
I matched the output of the plugin with the output of free command and the ‘used’ memory field doesn’t match. All the other values like ‘available’, ‘free’ etc. are close enough to be correct.