mirror of
https://github.com/nextcloud/server.git
synced 2026-06-09 00:32:29 -04:00
Merge pull request #58090 from nextcloud/backport/58052/stable33
[stable33] chore(openmetrics): export only "real" files count
This commit is contained in:
commit
9cea0183f4
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