Ohai Field Descriptions?

I want to use the ohai-provided attribute node[“memory”][“total”] to do some basic math and dynamically assign memory to a configuration file as 80% of the machine’s total memory.

Looking at the output from running ohai on the server, this value is produced as 53591292kB. Is there documentation on the format of ohai output somewhere? I dont want to do math on kb values only to discover that on a different machine with different memory size, it is producing values in bytes.

I don’t know about any documentation but the code speaks for itself in my eyes: https://github.com/chef/ohai/blob/master/lib/ohai/plugins/linux/memory.rb#L29