We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent adeaed5 commit f266c80Copy full SHA for f266c80
1 file changed
app/models/statistics/users.rb
@@ -4,7 +4,12 @@ class Statistics::Users < Statistics::Statistics
4
def pctrecent(value)
5
"%.0f%%" % (100.0 * value / nb_recently_seen_accounts)
6
end
7
-
+
8
+ def pctrecent_filled(value,field)
9
+ # take into account those having declared an xmpp or mastodon account
10
+ "%.0f%%" % (100.0 * value / filled(field))
11
+ end
12
13
def nb_users
14
count "SELECT COUNT(*) AS cnt FROM users"
15
0 commit comments