History log of /system/core/toolbox/df.c
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
1f90dcd0c022182220c37b300690cf73674d03b8 14-Jul-2011 Michal Frynas <michal.frynas@sonyericsson.com> Fixed improper size displaying in 'df' utility

'df' command used to display filesystem usage statistics as integer
values, in most cases rounding the actual value down. Because of
that 'df' tended to display faulty size values.
This fix to 'df' utility calculates the fractional part of the size,
then it rounds it when needed to the nearest one-digit integer value
and displays after decimal dot.

Change-Id: I9bc52635d45d3e55ce61b3b1c6b80d1267516e75
/system/core/toolbox/df.c
09dd3e57b920c8f65cb486313a4c0f35b8cb9f46 12-Sep-2010 Brian Swetland <swetland@google.com> make df more readable

Filesystem Size Used Free Blksize
/dev 164M 32K 164M 4096
/system 442M 117M 325M 4096
/cache 492M 8M 483M 4096
/data 984M 59M 925M 4096
/mnt/sdcard 12G 27M 12G 32768

Change-Id: I9a84b7b84ae528ee5cf0b1e92a8bee032b87703b
/system/core/toolbox/df.c
dd7bc3319deb2b77c5d07a51b7d6cd7e11b5beb0 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/df.c
e54eebbf1a908d65ee8cf80bab62821c05666d70 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
/system/core/toolbox/df.c
4f6e8d7a00cbeda1e70cc15be9c4af1018bdad53 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
/system/core/toolbox/df.c