git.cweiske.de
/
phinde.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Do not throw exception but send 400
[phinde.git]
/
www
/
status.php
diff --git
a/www/status.php
b/www/status.php
index 08e2a0dfd906dd81a0b9e34194e32dbdcdb20313..a57c121a2ae1d42bd9340a549dc2bd44c8ae1170 100644
(file)
--- a/
www/status.php
+++ b/
www/status.php
@@
-8,6
+8,9
@@
$esStatus = $es->getIndexStatus();
$queue = new Queue();
$gearStatus = $queue->getServerStatus();
$queue = new Queue();
$gearStatus = $queue->getServerStatus();
+$subDb = new Subscriptions();
+$subCount = $subDb->count();
+
/**
* @link http://jeffreysambells.com/2012/10/25/human-readable-filesize-php
*/
/**
* @link http://jeffreysambells.com/2012/10/25/human-readable-filesize-php
*/
@@
-19,13
+22,18
@@
function human_filesize($bytes, $decimals = 2)
. ' ' . @$size[$factor];
}
. ' ' . @$size[$factor];
}
-$esStatus['size_human'] = human_filesize($esStatus['size']);
+$esStatus['size_human'] = human_filesize($esStatus['size']);
+$esStatus['documents_human'] = number_format(
+ $esStatus['documents'], 0, '.', ' '
+);
render(
'status',
array(
'esStatus' => $esStatus,
'gearStatus' => $gearStatus,
render(
'status',
array(
'esStatus' => $esStatus,
'gearStatus' => $gearStatus,
+ 'subCount' => $subCount,
+ 'subSum' => array_sum($subCount),
)
);
?>
)
);
?>