Commit 636e8972 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Display db size


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 18d7b9d0
......@@ -207,6 +207,7 @@ function site_statistics() {
}
$data['release'] = get_config('release');
$data['version'] = get_config('version');
$data['dbsize'] = db_total_size();
return($data);
}
......
......@@ -12,7 +12,7 @@ addLoadEvent(function () {literal}{{/literal}
<p><strong>{str tag=users}:</strong> {$sitedata.users}{if $sitedata.rank.users} ({str tag=Rank section=admin}: $sitedata.rank.users}){/if}</p>
<p><strong>{str tag=groups}:</strong> {$sitedata.groups}{if $sitedata.rank.groups} ({str tag=Rank section=admin}: $sitedata.rank.groups}){/if}</p>
<p><strong>{str tag=views}:</strong> {$sitedata.views}{if $sitedata.rank.views} ({str tag=Rank section=admin}: $sitedata.rank.views}){/if}</p>
<!--p><strong>{str tag=databasesize section=admin}:</strong></p-->
<p><strong>{str tag=databasesize section=admin}:</strong> {$sitedata.dbsize|display_size}</p>
<!--p><strong>{str tag=diskusage section=admin}:</strong></p-->
<p><strong>{str tag=maharaversion section=admin}:</strong> {$sitedata.release}</p>
</div>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment