mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
Merge pull request #58052 from nextcloud/chore/export_only_real_files_count
chore(openmetrics): export only "real" files count
This commit is contained in:
commit
c5253d9fc3
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