diff --git a/stats.php b/stats.php
index 65723ff2e..d56389eca 100644
--- a/stats.php
+++ b/stats.php
@@ -29,11 +29,14 @@
Counters
- $result = db_query($link, "SELECT count(int_id) as cid FROM ttrss_user_entries");
+ $result = db_query($link, "SELECT count(id) AS cid,
+ SUM(LENGTH(content)) AS size
+ FROM ttrss_entries");
$total_articles = db_fetch_result($result, 0, "cid");
+ $articles_size = round(db_fetch_result($result, 0, "size") / 1024);
- print "Total articles stored: $total_articles
";
+ print "Total articles stored: $total_articles (${articles_size}K)
";
$result = db_query($link, "SELECT COUNT(int_id) as cid,owner_uid,login
FROM ttrss_user_entries