Merge pull request #58052 from nextcloud/chore/export_only_real_files_count

chore(openmetrics): export only "real" files count
This commit is contained in:
Benjamin Gaussorgues 2026-02-05 09:55:28 +01:00 committed by GitHub
commit c5253d9fc3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();