Current time: 07-04-2009, 04:16 PM Hello There, Guest! (LoginRegister)


 
Thread Rating:
  • 1 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[F] Estimated Attachment Bandwidth Usage
07-22-2008, 03:15 PM
Post: #1
[F] Estimated Attachment Bandwidth Usage
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
PHP Code:
$table->construct_cell(get_friendly_size(round($attachs['spaceused']*$attachs['downloadsused'])), array('width' => '25%')); 
should be
PHP Code:
$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.

Greets,
Michael
-------------
German MyBB-Site
MyBBoard.de
Get the german languagepack here
Visit this user's website Find all posts by this user
07-23-2008, 07:40 AM
Post: #2
[F] Estimated Attachment Bandwidth Usage
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.

[Image: sig.php?mybb]
MyBB is on Facebook and Twitter
Visit this user's website Find all posts by this user
07-23-2008, 12:52 PM
Post: #3
RE: [F] Estimated Attachment Bandwidth Usage
Duplicated?
http://community.mybboard.net/thread-33919.html

MyBBCoder | German Mod-Community

[Image: 12184hg0.png]
[Image: 15735gc4.png]
Visit this user's website Find all posts by this user
07-24-2008, 02:39 AM
Post: #4
RE: [F] Estimated Attachment Bandwidth Usage
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).
Visit this user's website Find all posts by this user
07-24-2008, 08:20 AM
Post: #5
RE: [F] Estimated Attachment Bandwidth Usage
I also think, that your change is better (and it is as simple as this fix).

MyBBCoder | German Mod-Community

[Image: 12184hg0.png]
[Image: 15735gc4.png]
Visit this user's website Find all posts by this user


Forum Jump: