g_format_size: Add support for variable size format option
Submitted by gno..@..il.com
Link to original bug (#773617)
Description
Created attachment 338667 Screenshot: Use variable size format for different sizes.
I currently use an ipod which has various contents: Music / Photos / Videos / Podcasts etc. In these cases, the higher sizes for contents need more resolution and lower sizes need less resolution. Please refer to attached image for details.
E.g.
3.4 GB can be 3.42 GB ( 3.42 GB is more useful than 3.4 GB ) 248.2 KB can be 248 KB ( 248.2 KB is not very useful compared to 248 KB )
Currently, g_format_size has ".1f" for all sizes ( GB / KB / MB ) etc. It should support one more flag in "GFormatSizeFlags", which implements this behavior. This can co-exists with the current behavior.
Attachment 338667, "Screenshot: Use variable size format for different sizes.":