Skip to content

Commit 9cea018

Browse files
Merge pull request #58090 from nextcloud/backport/58052/stable33
[stable33] chore(openmetrics): export only "real" files count
2 parents f726084 + 001f90b commit 9cea018

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/private/OpenMetrics/Exporters/FilesByType.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ public function gatherMetrics(): Generator {
6161
$qb = $this->connection->getQueryBuilder()->runAcrossAllShards();
6262
$metrics = $qb->select('mimetype', $qb->func()->count('*', 'count'))
6363
->from('filecache')
64+
->where($qb->expr()->like('path', $qb->createNamedParameter('files/%')))
6465
->groupBy('mimetype')
6566
->executeQuery();
6667

0 commit comments

Comments
 (0)