Re: g_format_file_size_for_display()
- From: Sven Neumann <sven gimp org>
- To: David Zeuthen <david fubar dk>
- Cc: Federico Mena Quintero <federico ximian com>, GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: g_format_file_size_for_display()
- Date: Tue, 18 Dec 2007 23:01:22 +0100
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
Sven
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]