title: Node.js os.freemem() do not work correctly
body: <p>I'm using this method of Node.js Os module: <a href="https://nodejs.org/api/os.html#os_os_freemem" rel="nofollow noreferrer">os.freemem()</a> </p>
  
  <p>This is my sample code:</p>
  
  <pre><code>const os = require('os');
  
  const bytesToSize = (bytes) =&gt; {
  const sizes = ['Bytes', 'KB', 'MB', 'GB', 'TB'];
  if (bytes == 0) return '0 Byte';
  const i = parseInt(Math.floor(Math.log(bytes) / Math.log(1024)));
  return Math.round(bytes / Math.pow(1024, i), 2) + ' ' + sizes[i];
  };
  
   console.log('free memory : ', bytesToSize(os.freemem()));
   console.log('total memory : ', bytesToSize(os.totalmem()));
  </code></pre>
  
  <p>after  I run my code, I give the below result: </p>
  
  <p>free memory :  164 MB</p>
  
  <p>total memory :  8 GB</p>
  
  <p>but my OS system monitor show me: </p>
  
  <p><a href="https://i.stack.imgur.com/O1O1J.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/O1O1J.png" alt="os free memory"></a></p>
  
  <p>Why is there such a difference?</p>