mirror of
https://github.com/project-zot/zot.git
synced 2026-06-17 12:58:02 +08:00
fix: fixed image size not counting config and manifest sizes (#937)
Signed-off-by: Ana-Roberta Lisca <ana.kagome@yahoo.com>
This commit is contained in:
committed by
GitHub
parent
4170d2adbc
commit
eb722905cb
@@ -290,6 +290,15 @@ func (p *requestsPool) doJob(ctx context.Context, job *manifestJob) {
|
||||
)
|
||||
}
|
||||
|
||||
size += uint64(job.manifestResp.Config.Size)
|
||||
|
||||
manifestSize, err := strconv.Atoi(header.Get("Content-Length"))
|
||||
if err != nil {
|
||||
p.outputCh <- stringResult{"", err}
|
||||
}
|
||||
|
||||
size += uint64(manifestSize)
|
||||
|
||||
image := &imageStruct{}
|
||||
image.verbose = *job.config.verbose
|
||||
image.RepoName = job.imageName
|
||||
|
||||
Reference in New Issue
Block a user