(10-08-2008 07:06 PM)FeG Wrote: Hi,
(10-08-2008 06:47 AM)zmediaguru Wrote: One quick note - the table status Data_length and Index_length values used by this functions appear to be returning data size in bits, and need to be converted to MB
This is not correct. Yes, they are in bytes, but the disk usage is calculated in bytes, too and the column 'domain_disk_usage' in the table 'domain' stores it's value as bytes.
So no conversion is needed here.
If no conversion is needed, then, how come then with no conversion added to the script, the Quota count is returning over a Petabyte of storage space used (see attachment ) where actual disk space used is roughly 6.7GB as reported by 'du'??
Here is the quota calculation with my conversion in place