Re: Memory/Disk usage information -MB vs MiB


Nicholas Calugar
 

Hi Ponraj and Daniel,

Could you point me at documentation or API endpoints you are looking at the
use MB?


Thanks,

Nick

--
Nicholas Calugar
Product Manager - Cloud Foundry API
Pivotal Software, Inc.

On November 28, 2016 at 2:42:07 PM, Daniel Jones (
daniel.jones(a)engineerbetter.com) wrote:

+1 for proper units (KiB, MiB)

Regards,
Daniel Jones - CTO
+44 (0)79 8000 9153
@DanielJonesEB <https://twitter.com/DanielJonesEB>
*EngineerBetter* Ltd <http://www.engineerbetter.com> - UK Cloud Foundry
Specialists

On Thu, Nov 24, 2016 at 7:00 AM, Ponraj E <ponraj.e(a)gmail.com> wrote:

Hi Colleagues,

I see CF using base 2 (1024 * 1024) for all the memory/disk quota/usage
information, but base 10's unit at the end(MB). For ex, CF returns app
instance memory as 1024 MB [using base 2 defintion (1024) and base 10's
unit (MB)].

The problem arises when we have a client which does the
conversion/formatting rightly and the values tend to differ from CF and the
client. Though this confusion has been in varied existence still (for ex:
Disk size of HDD), does CF have any plans of using one particular defintion
throughout, like either 1024 MiB or 1000 MB?

P.S :
base 2 definition: 1 Kibibyte = 1024 Byte
base 10 defintion: 1 Kilobyte = 1000 Byte

------
Ponraj

Join cf-dev@lists.cloudfoundry.org to automatically receive all group messages.