Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-pages.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'internal/vfs/zip/archive.go')
-rw-r--r--internal/vfs/zip/archive.go4
1 files changed, 3 insertions, 1 deletions
diff --git a/internal/vfs/zip/archive.go b/internal/vfs/zip/archive.go
index 7a9bcc3d..94c5a545 100644
--- a/internal/vfs/zip/archive.go
+++ b/internal/vfs/zip/archive.go
@@ -138,7 +138,9 @@ func (a *zipArchive) readArchive() {
// recycle memory
a.archive.File = nil
- metrics.ZipServingFilesPerArchiveCount.Observe(float64(len(a.files)))
+ fileCount := float64(len(a.files))
+ metrics.ZipServingFilesPerArchiveTotalCount.Add(fileCount)
+ metrics.ZipServingFilesPerZipArchiveCurrentlyCached.Set(fileCount)
}
func (a *zipArchive) findFile(name string) *zip.File {