Am Dienstag, den 18.12.2007, 23:01 +0100 schrieb Sven Neumann: > Hi, > > On Tue, 2007-12-18 at 16:45 -0500, David Zeuthen wrote: > > On Tue, 2007-12-18 at 14:50 -0600, Federico Mena Quintero wrote: > > > Should this be called generically g_format_size_for_display()? You > > > could use it for more than file sizes (free RAM in gnome-system-monitor, > > > etc.). > > > > It's here btw > > > > http://svn.gnome.org/viewvc/glib/trunk/glib/gfileutils.c?revision=6076&view=markup > > > > char *g_format_file_size_for_display (goffset size); > > > > Ideally this one needs to take another parameter indicating whether you > > want 1kb = 1000 bytes or 1kb = 1024 bytes. > > We should also decide then whether the displayed size should use MB or > MiB, see http://en.wikipedia.org/wiki/Mebibyte and > http://www.iec.ch/zone/si/si_bytes.htm I am all for SI units, even it writing MiB could cause some users to believe, we are too stupid to spell. Seemingly random switching between 1000 and 1024 whouldn't really help - I guess: Imagine some user wants to copy a 64 MiB file from some 1024 to some 1000 scale media: WTF doesn't this 64 MB file (64 * 2^10 bytes) fit on this 64 MB stick (64 * 10^6 bytes)? Ciao, Mathias -- Mathias Hasselmann <mathias hasselmann gmx de> Openismus GmbH: http://www.openismus.com/ Personal Site: http://taschenorakel.de/
Attachment:
signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil