Re: [mythtv] [patch] mythbackend MainServer::getFreeSpace

2005-03-22 Thread Isaac Richards
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); >

Re: [mythtv] [patch] mythbackend MainServer::getFreeSpace

2005-02-20 Thread Nigel Pearson
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

[mythtv] [patch] mythbackend MainServer::getFreeSpace

2005-02-16 Thread Jim Westfall
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) /