[haiku-commits] Re: r40777 - haiku/trunk/src/apps/processcontroller

  • From: Philippe Houdoin <philippe.houdoin@xxxxxxxxx>
  • To: haiku-commits@xxxxxxxxxxxxx
  • Date: Wed, 2 Mar 2011 22:44:34 +0100

> As far as I am concerned, KB = 1024B, at least until the US switches to the 
> metric system :-D
> I propose we use Ka/Ma/Ga prefixes instead for 1000:
> Kaka byte
> Mama byte
> Gaga byte =)

Good news is that by the time US switch to metric system, the whole
Haiku will use the localized string_for_size() function, so moving to
a Ka/Ma/Ga will be then easy.
We're getting future proof ;-)

More seriously, string_for_size() could be enhanced to allow passing
min and max unit. Sometimes, like in ProcessController, one wants to
show all size using the same (range of) units (here K[i]B).
I didn't find the time to do that yet.


Other related posts: