summaryrefslogtreecommitdiff
path: root/lib/Travelynx/Command/munin.pm
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2021-04-20 23:10:22 +0200
committerDaniel Friesel <derf@finalrewind.org>2021-04-20 23:10:22 +0200
commit810945f8bc9306f4665c4f974cd84d82fad8a495 (patch)
tree4f0f49cf4793fea7395a351606f9d1f31c75c361 /lib/Travelynx/Command/munin.pm
parent582e8b874c50804dbfba348eb7ecbdee79a5d90f (diff)
munin: add pending_user_count1.19.12
Diffstat (limited to 'lib/Travelynx/Command/munin.pm')
-rw-r--r--lib/Travelynx/Command/munin.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Travelynx/Command/munin.pm b/lib/Travelynx/Command/munin.pm
index d509154..9c53ece 100644
--- a/lib/Travelynx/Command/munin.pm
+++ b/lib/Travelynx/Command/munin.pm
@@ -40,6 +40,9 @@ sub run {
my $one_week = 7 * $one_day;
my $one_month = 30 * $one_day;
+ query_to_munin( 'pending_user_count',
+ $db->select( 'users', 'count(*) as count', { status => 0 } )
+ ->hash->{count} );
query_to_munin( 'reg_user_count',
$db->select( 'users', 'count(*) as count', { status => 1 } )
->hash->{count} );