MyBB Community Forums

Full Version: [F] Estimated Attachment Bandwidth Usage
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I looked into the stats on the system health page in the Admin-CP. There I found the following info:
  • Attachment Space used: 147,44 MB
  • Estimated Attachment Bandwidth Usage: 9,61 TB
I thougt that the bandwith usage is way to much.

I think the following line in admin/modules/tools/system_health.php
$table->construct_cell(get_friendly_size(round($attachs['spaceused']*$attachs['downloadsused'])), array('width' => '25%'));
should be
$table->construct_cell(get_friendly_size(round($attachs['spaceused']/$attachs['numattachs']*$attachs['downloadsused'])), array('width' => '25%'));
Now it shows 3,76 GB which is more realistic.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.
Not at home so can't check what's been committed, but I personally think my change was a little more accurate, as the above only gets the average attachment size, and multiplies it by the number of times all attachments have been downloaded (so will be warped if a big attachment is downloaded many times).
I also think, that your change is better (and it is as simple as this fix).