Endless Paradigm

Full Version: Deleting Old Attachments
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
I am going to go through all my Attachments here at EP and deleting obsolete files.

[Image: 339oha8.jpg]

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.
Damn you have a lot.
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:

[Image: 21lj1c8.jpg]

That's weird..  Hmmm
:|

How u use 144 GB o bandwidth?
LOL:)
holy bandwidth batman
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))
	{
// ...
			// Add to bandwidth total
			$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]
Pages: 1 2
Reference URL's