KB and KiB confusion
sa-mao opened this issue · comments
mem.total = parseInt(line.split(/\s+/)[1]) * 1024 if line.match /^MemTotal/
must scale by 1000 instead of 1024 since 1KB = 1000 bytes (1024 bytes = 1KiB )
see http://www.iec.ch/si/binary.htm
Hoardd is extensible daemon designed to collect server data and inject into Graphite/Carbon
sa-mao opened this issue · comments
mem.total = parseInt(line.split(/\s+/)[1]) * 1024 if line.match /^MemTotal/
must scale by 1000 instead of 1024 since 1KB = 1000 bytes (1024 bytes = 1KiB )
see http://www.iec.ch/si/binary.htm