On Fri, 3 Apr 2020 14:29:06 +0100 Ferruh Yigit <ferruh.yi...@intel.com> wrote:
> > + socket_stats.heap_totalsz_bytes / 1.0e6, > > + socket_stats.heap_allocsz_bytes / 1.0e6, > > + (double)socket_stats.heap_allocsz_bytes * 100 / > > + (double)socket_stats.heap_totalsz_bytes, > > + socket_stats.heap_freesz_bytes / 1.0e6, > > + socket_stats.alloc_count, > > + socket_stats.free_count); > > This gives an output like [1], can you please divide to (1024*1024) to convert > byte to Mb, than it can give more clear numbers. Agree, the standard is to use 1024*1024 for memory megabytes. And 1000*1000 for bytes in networking.