On Wednesday 16 February 2005 09:55 pm, Jim Westfall wrote:
> These are the current calculations for getting totalspace and usedspace,
> which get reported to the frontend.
>
> totalspace = (statbuf.f_blocks - (statbuf.f_bfree - statbuf.f_bavail)) /
> (1024*1024/statbuf.f_bsize);
>
Hi Jim. Thanks for your patch and explanation.
totalspace = (statbuf.f_blocks - (statbuf.f_bfree - statbuf.f_bavail))
/
(1024*1024/statbuf.f_bsize);
usedspace = (statbuf.f_blocks - statbuf.f_bavail) /
(1024*1024/statbuf.f_bsize);
totalspace is adjusted to
These are the current calculations for getting totalspace and usedspace,
which get reported to the frontend.
totalspace = (statbuf.f_blocks - (statbuf.f_bfree - statbuf.f_bavail)) /
(1024*1024/statbuf.f_bsize);
usedspace = (statbuf.f_blocks - statbuf.f_bavail) /