[mythtv-commits] mythtv commit: r12186 by cpinkham

mythtv at cvs.mythtv.org mythtv at cvs.mythtv.org
Mon Dec 4 04:56:00 UTC 2006


      Author: cpinkham
        Date: 2006-12-04 04:55:59 +0000 (Mon, 04 Dec 2006)
New Revision: 12186
   Changeset: http://cvs.mythtv.org/trac/changeset/12186

Modified:

   trunk/mythtv/libs/libmyth/util.cpp

Log:

Fix space calculations in util.cpp's getDiskSpace() function.  Previously
they would divide the number of blocks by 1024, now they correctly divide
the total bytes by 1024.  This discrepancy was causing some users to see
large differences in the total and used space stats for the same filesystem
depending on what host getDiskSpace() was run on.  This was affecting Storage
Groups and the disk usage reporting because the code was unable to determine
that the two filesystems were in fact the same one.

Thanks to Gregorio Gervasio for reporting the bug and tracking it down.






More information about the mythtv-commits mailing list