I am going to go through all my Attachments here at EP and deleting obsolete files.
I posted the thread in case there is something that someone doesn't want deleted.
Really though I only plan on deleting things like emulators/homebrew/plugins that have received numerous updates making the older revisions obsolete.
ButtBeardJoomla Wrote: [ -> ]Damn you have a lot.
Yeah, I figured my attachments needed a good douche...
LOL :P
Hmmm. Deleted a couple files, and now my attachment stats look like this:
That's weird..

:|
How u use 144 GB o bandwidth?
lol, damn. I don't have any....
I don't really mind space usage, and there's enough bandwidth for now.
I have a feeling MyBB may be screwing up the bandwidth estimation from overflowing or similar.
EDIT: uh, I see the problem - looks like whoever coded the attachment statistics code had a brain fart:
PHP Code:
$end = $start + $perpage;
$lower = $start+1;
$query = $db->query("
SELECT a.*, p.subject, p.dateline, t.tid, t.subject AS threadsubject
FROM ".TABLE_PREFIX."attachments a
LEFT JOIN ".TABLE_PREFIX."posts p ON (a.pid=p.pid)
LEFT JOIN ".TABLE_PREFIX."threads t ON (t.tid=p.tid)
WHERE a.uid='".$mybb->user['uid']."'
ORDER BY p.dateline DESC LIMIT {$start}, {$perpage}
");
$bandwidth = $totaldownloads = 0;
while($attachment = $db->fetch_array($query))
{
$bandwidth += ($attachment['filesize'] * $attachment['downloads']);
$totaldownloads += $attachment['downloads'];
}
|
I presume the stats are different if you're viewing a different page?
The space used should be correct in the above picture. If you're interested in the real stats for you:
# attachments: 235
Total # downloads: 91967
Estimated bandwidth usage (which is just # downloads × size of attachment): 135.76GB
Here is my attachment statistics........
![[Image: bsanehi.png]](http://dl.dropbox.com/u/22694408/threadpicture/bsanehi.png)