diff options
| author | Christian Weiske <cweiske@cweiske.de> | 2016-11-24 23:11:52 +0100 |
|---|---|---|
| committer | Christian Weiske <cweiske@cweiske.de> | 2016-11-24 23:11:52 +0100 |
| commit | dd3e0698a71ca2746166f006135aeace83dfeb20 (patch) | |
| tree | b7e797bad721a980dbe06301bfe089991d146c5d /www | |
| parent | 161c1102795805ee665a727e185fb71e58c92110 (diff) | |
| download | phinde-dd3e0698a71ca2746166f006135aeace83dfeb20.tar.gz phinde-dd3e0698a71ca2746166f006135aeace83dfeb20.zip | |
show subscriptions on status page
Diffstat (limited to 'www')
| -rw-r--r-- | www/status.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/www/status.php b/www/status.php index 4118c9c..a57c121 100644 --- a/www/status.php +++ b/www/status.php @@ -8,6 +8,9 @@ $esStatus = $es->getIndexStatus(); $queue = new Queue(); $gearStatus = $queue->getServerStatus(); +$subDb = new Subscriptions(); +$subCount = $subDb->count(); + /** * @link http://jeffreysambells.com/2012/10/25/human-readable-filesize-php */ @@ -29,6 +32,8 @@ render( array( 'esStatus' => $esStatus, 'gearStatus' => $gearStatus, + 'subCount' => $subCount, + 'subSum' => array_sum($subCount), ) ); ?> |
