[BusyBox] Re: [BusyBox-cvs] cvs commit to busybox by andersen
Mark Whitley
markw at lineo.com
Sat Mar 10 00:49:33 UTC 2001
On Fri, Mar 09, 2001 at 03:42:26PM -0700, andersen at busybox.net wrote:
> Repository: busybox
> who: andersen
> time: Fri Mar 9 15:42:26 MST 2001
>
>
> Log Message:
>
> Fixed df.c so that nfs volumes will display properly (fixing bug #1113).
> Problem was 512/1024 = 0 if you use longs, so I cast KILOBYTE to a double, then
> cast the result back to an int after the math is done, letting C's type
> promotion do its magic for the rest.
This is using the very latest from CVS:
$ ./busybox df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda4 8815404 6116388 2251208 73% /
/dev/hda1 62187 4946 54030 8% /boot
/dev/hda3 3958799 703400 3050571 19% /home/markw/mp3
juicy.lineo.com:/mp3 0 0 0 26% /home/markw/mp3/juicy
$ df
Filesystem 1k-blocks Used Available Use% Mounted on
/dev/hda4 8815404 6116388 2251208 73% /
/dev/hda1 62187 4946 54030 8% /boot
/dev/hda3 3958799 703400 3050571 19% /home/markw/mp3
juicy.lineo.com:/mp3 27276968 6702880 19188484 26% /home/markw/mp3/juicy
I don't think this bug is entirely squashed yet.
Mark Whitley
markw at lineo.com
More information about the busybox
mailing list