approx db size in user details shows kbytes

This commit is contained in:
Andrew Dolgov 2005-11-18 14:29:32 +01:00
parent 967955b759
commit d9f115c3b2
1 changed files with 3 additions and 3 deletions

View File

@ -1996,16 +1996,16 @@
SUM(LENGTH(content)+LENGTH(title)+LENGTH(link)+LENGTH(guid)) AS db_size SUM(LENGTH(content)+LENGTH(title)+LENGTH(link)+LENGTH(guid)) AS db_size
FROM ttrss_entries WHERE owner_uid = '$uid'"); FROM ttrss_entries WHERE owner_uid = '$uid'");
$db_size = db_fetch_result($result, 0, "db_size"); $db_size = round(db_fetch_result($result, 0, "db_size") / 1024);
print "<tr><td>Approx. DB size</td><td>$db_size bytes</td></tr>"; print "<tr><td>Approx. DB size</td><td>$db_size KBytes</td></tr>";
print "</table>"; print "</table>";
print "<h1>Subscribed feeds</h1>"; print "<h1>Subscribed feeds</h1>";
$result = db_query($link, "SELECT id,title,feed_url FROM ttrss_feeds $result = db_query($link, "SELECT id,title,feed_url FROM ttrss_feeds
WHERE owner_uid = '$uid'"); WHERE owner_uid = '$uid' ORDER BY title");
print "<ul class=\"nomarks\">"; print "<ul class=\"nomarks\">";