aboutsummaryrefslogtreecommitdiff
path: root/www/status.php
diff options
context:
space:
mode:
Diffstat (limited to 'www/status.php')
-rw-r--r--www/status.php5
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),
)
);
?>