Skip to content
Snippets Groups Projects
Unverified Commit c644d022 authored by Peter Rotich's avatar Peter Rotich Committed by GitHub
Browse files

Merge pull request #4275 from JediKev/issue/information-page-performance

issue: Information Page Performance
parents 24dbd3b3 dfa0f3f0
No related branches found
No related tags found
No related merge requests found
......@@ -154,7 +154,17 @@ if (!$lv) { ?>
echo sprintf('%.2f MiB', $space); ?></td>
<tr><td><?php echo __('Space for Attachments'); ?></td>
<td><?php
$sql = 'SELECT SUM(LENGTH(filedata)) / 1048576 FROM '.FILE_CHUNK_TABLE;
$sql = 'SELECT
(DATA_LENGTH + INDEX_LENGTH) / 1024 / 1024
FROM
information_schema.TABLES
WHERE
TABLE_SCHEMA = "'.DBNAME.'"
AND
TABLE_NAME = "'.FILE_CHUNK_TABLE.'"
ORDER BY
(DATA_LENGTH + INDEX_LENGTH)
DESC';
$space = db_result(db_query($sql));
echo sprintf('%.2f MiB', $space); ?></td></tr>
<tr><td><?php echo __('Timezone'); ?></td>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment