From: Andrew Dolgov Date: Fri, 18 Nov 2005 13:29:32 +0000 (+0100) Subject: approx db size in user details shows kbytes X-Git-Tag: schema_feature_freeze_for_1.1~211 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=d9f115c3b2e799ad7fccd4a8eefa462a9c1d6408;p=tt-rss.git approx db size in user details shows kbytes --- diff --git a/backend.php b/backend.php index 2f1e7c2f..36d1a66e 100644 --- a/backend.php +++ b/backend.php @@ -1996,16 +1996,16 @@ SUM(LENGTH(content)+LENGTH(title)+LENGTH(link)+LENGTH(guid)) AS db_size 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 "Approx. DB size$db_size bytes"; + print "Approx. DB size$db_size KBytes"; print ""; print "

Subscribed 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 "