mirror of
https://github.com/nextcloud/server.git
synced 2026-02-18 18:28:50 -05:00
chore(openmetrics): export only "real" files count
Other files like files in trashbin or file versions should be exported by related app Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
This commit is contained in:
parent
2d0a24f042
commit
4112b9f7ba
1 changed files with 1 additions and 0 deletions
|
|
@ -61,6 +61,7 @@ class FilesByType extends Cached {
|
|||
$qb = $this->connection->getQueryBuilder()->runAcrossAllShards();
|
||||
$metrics = $qb->select('mimetype', $qb->func()->count('*', 'count'))
|
||||
->from('filecache')
|
||||
->where($qb->expr()->like('path', $qb->createNamedParameter('files/%')))
|
||||
->groupBy('mimetype')
|
||||
->executeQuery();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue